Questions tagged [github-api-v3]
120 questions
0
votes
1 answer
How to list the private repositories via GitHub API on Github enterprise
I'm trying to get a list of an organisation's repositories, including private ones. The thing is, we have an enterprise deployment.
I've tried the solutions in How to list organization's private repositories via GitHub API?, but they're all related…

Leonardo
- 1,533
- 17
- 28
0
votes
0 answers
Link Github Issues to the PR
Im collecting the list of issues and want to know exactly to which PR or branch it is connected.
I'm using the List of issues endpoint to get list of Repo issues:…
0
votes
1 answer
Octokit.js github base url setup
I am trying to authenticate with my enterprise github through App in octokit.js but I couldn't find any parameter to change gihub url. Can someone please help?
const {Octokit, App} = require('octokit')
// below points to github.com
const app = new…

Jags
- 799
- 7
- 19
0
votes
0 answers
Github API: two_factor_requirement_enabled is nil
Steps to reproduce
I'm using Github api with Github apps:
I am logged in with owner org user
and provide next permissions:
Read access to actions,
administration,
deployments,
environments,
issues,
metadata,
pull requests.
Then
I get org info…
0
votes
1 answer
Github REST API: list collaborators
I need to retrieve a list of people we're paying the Github license for. So it includes:
members
outside collaborators
pending invitations
While it's rather easy to read the members, I have no idea what is the right way to get the list of outside…

Mara
- 371
- 5
- 16
0
votes
0 answers
GithubAPI to get commits of particular file
I am using org.kohsuke library to interact with github repo,I am able to get the repo level lastest commits but I am unable to find the lastest commit of a particular file.Could you please help me to get lastest commits of a file in java.
To get…

Lava
- 1
0
votes
0 answers
GitHub's REST API for events not reporting all the 300 public events although it is within 90 days
According to GitHub's REST API events documentation (https://docs.github.com/en/rest/activity/events), I should be getting events that have been made by a user in the past 90 days (max 300 events). But for some usernames, I am not able to get all…

Natty
- 527
- 5
- 10
0
votes
0 answers
Github Search: how to list users by multiple languages?
Hi guys so I want to list out all github users based on languages.
ok so this will list all users who have css language repos
https://api.github.com/search/users?q=language:css
This will list all users who have css repos or c…

siduck
- 3
- 5
0
votes
0 answers
Github API search code, missing items in JSON
I've been trying to build up a tool that needs to fetch all files' URLs of GitHub code search's result. For example when you go the here and search for uber.com api_key. You'll see that there is 381 code results and I want to get all these 381…

BooRuleDie
- 1
- 1
0
votes
1 answer
Adding header in GitHub API request in React
I am using GitHub API to fetch file from repo:
const octokit = new Octokit({
auth: "*******************************",
});
const response = await octokit.request(
"GET /repos/owner/repo/contents/path",
{
owner: "owner",
repo: "repo",
…
user19672461
0
votes
1 answer
Does the GitHub API provide a way to check if a branch is up-to-date?
In GitHub, in the branch protection settings, you can require branches to be up to date before merging (this is possible both for both GitHub Enterprise and for public repos in free GitHub):
Then on a PR, if the branch is not up to date with the…

Shane Bishop
- 3,905
- 4
- 17
- 47
0
votes
0 answers
fetching private repositories from GitHub app
I'm building a web app that integrates with GitHub API (authentication). I'm trying to fetch the user's repositories both public and private. But both without accessToken and with accessToken return public repos only.
authentication
const…

angel_dust
- 121
- 2
- 10
0
votes
0 answers
Multiple files under a single commit through GitHub API
Each commit contains 2 files uploaded to GitHub, we have a few of such commits.
we have only one branch (Main), We need to bound these commits with a branch so that we can view all files that were pushed.
The problem comes when we attach a commit…

SANDEEP S S
- 68
- 1
- 9
0
votes
1 answer
Get GitHub User by ObjectID from SCIM (Azure AD)
I have a Github App and I would like to look up a Github User. We have our organization connected to our corporate Azure AD.
Is it possible to find a Github User based on an ObjectId or UPN from AzureAD?
I've tried this API…

Casper Jensen
- 551
- 1
- 5
- 15
0
votes
0 answers
How can i get the logs of git using github API
I referred to many documents to get the logs of GitHub using GitHub API. But I couldn't find the way. I want to get the logs of GitHub events(commit, changes, etc..) and send them to cloudwatch. How can I achieve this? Or any other way to get the…

jayaprakash R
- 152
- 3
- 13