Questions tagged [github-api-v3]

120 questions
17
votes
7 answers

Get run id after triggering a github workflow dispatch event

I am triggering a workflow run via github's rest api. But github doesn't send any data in the response body (204). How do i get the run id of the trigger request made? I know about the getRunsList api, which would return runs for a workflow id, then…
12
votes
1 answer

Github Search API - Exclude certain topics

According to the docs, I could use - to exclude certain things from the search API... I tested it and this works on the language field for example, but doesn't work on topics. According to the documentation: note cats stars:>10 -language:javascript…
Nfff3
  • 321
  • 8
  • 24
12
votes
2 answers

Downloading github actions workflow logs using github api

I am trying to download the logs of a particular workflow in github. I have referenced the following link for the same. However I am getting 302 as response code. Not sure what the issue here is. Its not downloading logs as expected curl -v -u…
codeaprendiz
  • 2,703
  • 1
  • 25
  • 49
11
votes
2 answers

Using GitHub list-issues-for-a-repository API

When you go to GitHub, under Issues, it pulls up all the open issues as an HTML page. We'd like to implement a dashboard showing all the issues in a repository, grouped by labels, including those issues which are not correctly labelled. This is the…
Yimin Rong
  • 1,890
  • 4
  • 31
  • 48
10
votes
1 answer

Unable to access github API getting bad credentials error

I am trying to add a custom code check for a PR. After doing some research I found out that it can be done using the API mentioned below. POST /repos/{owner}/{repo}/check-runs Initially, it was giving me this error: { "message": "You must…
Irtiza
  • 173
  • 4
  • 16
6
votes
1 answer

Github Enterprise API - determine if a user is dormant?

Running Github Enterprise 2.18. Is there any way to determine via the API that a user is dormant? I don't see a specific call for it anywhere...
Richard Schaefer
  • 525
  • 3
  • 13
  • 45
4
votes
1 answer

Github api request returning bad credentials even with admin privledged oauth token

I am trying to make a call https://api.github.com/repos/OWNER/REPO/actions/runners/registration-token with an users personal access token that has repo permissions. To do so I am testing with: curl -I -X POST -H "Authorization: token
Niru
  • 1,407
  • 1
  • 28
  • 47
4
votes
1 answer

Using the GitHub API how can I find the card id that is linked to a specific issue without iterating through the cards in a project?

The end result is I am trying to start with an issue number (tied to an issue card on a project) and programmatically move it to a different column. I've found this endpoint POST /projects/columns/cards/{card_id}/moves moves the card. This requires…
nmajor
  • 497
  • 4
  • 10
4
votes
1 answer

Github Apps identification of users

I have developed an github app which listens to merge event and provide analytics to the organization. App have user:read permission. To map git users with my app users we need an email id. I tried calling below API but it always gives email as…
Rishi Saraf
  • 1,644
  • 2
  • 14
  • 27
4
votes
2 answers

“Validation failed” error on searching in private repository with installation of GitHub App

I’ve created a GitHub app and installed it in my account, giving it access to a private repository in my account. The GitHub app has read permission to metadata. I then generated a JWT and used it to create an installation access token, following…
zane
  • 107
  • 1
  • 11
4
votes
4 answers

Getting Linked issues and Projects associated with a pull request form github api v3

How can I get the Projects and linked issues for a given pull request from github API V3? The pulls endpoint does not give information on either of them. In the github's pull requests section's sidebar there are Projects and Linked issues…
Siddhant Bane
  • 93
  • 3
  • 8
4
votes
1 answer

Github personal access token for accessing private repository's: /repos/:user/:repo/contents

I am trying to use a personal access token for accessing the contents of a repository. If the repository is public I can achieve this both with v3 and with v4 api. Both of the requests below return the contents: v3: curl…
Marinos An
  • 9,481
  • 6
  • 63
  • 96
4
votes
1 answer

Compute Github API file SHA

I have a file whose contents are "from test" - 9 bytes. The documentation says that the SHA of created files is computed using SHA1: The file's SHA-1 hash is computed and stored in the blob object. (from…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
4
votes
2 answers

GitHub Token - Restrict Access

I am using GitHub token as the credential for others people. Can make the token only allows the user to clone and pull, but NOT push or delete.
user6934519
3
votes
1 answer

Which permissions are needed for a GitHub app to access list-issues-for-a-repository API?

I'd like to create a GitHub app to display the current issues in a repository, organized by labels. The repositories under the organization are private, but my account has admin access. I've installed the app under my name. The API…
Yimin Rong
  • 1,890
  • 4
  • 31
  • 48
1
2 3 4 5 6 7 8