3,774 questions
-7
votes
2
answers
73
views
How to automatically approve Perplexity GitHub Connector popups on the web UI?
I'm using Perplexity web UI (https://www.perplexity.ai/) with the GitHub Connector to automate code edits and commits. Every time I ask Perplexity to create/update files or make changes, an "...
0
votes
0
answers
63
views
GitHub API endpoint no longer returning results for referral sources
When querying the referral sources endpoint on GitHub I'm only getting an empty list returned. I can get data for other endpoints in the same repo, even for other traffic endpoints. I'm expecting ...
0
votes
0
answers
26
views
Comment on unchanged lines
A few weeks ago, along with the new "files-changed" page, Github announced the possibility to add a comment on any line of a changed file.
The anounce mentioned "limited API support&...
0
votes
1
answer
188
views
Assigning Github Issue to Copilot Fails using GraphQL
I'm working in a python based repo and I'm trying to develop a flow where I look for Asana tasks in a specific project and when new ones are found, create a github issue for them and assign them to ...
0
votes
0
answers
28
views
How to fetch only GitHub repositories where I have write access via API?
I want to fetch all GitHub Pull Requests from repositories where I am a contributor. To do that, I first need to get all repositories where I have write access.
I tried calling the GitHub API endpoint:...
0
votes
0
answers
30
views
how to list linked repositories in a github project by using gh
I am trying to see/list the repositories linked to a specific github project by using gh
gh project ...
My goal, after getting the linked repositories, is to iterate over them like this.
repos = {gh ...
0
votes
1
answer
173
views
Run workflow globally for all repos in an organization
company/repo_A -> some commit \
company/repo_B -> run workflow in company/repo_codecheck
company/repo_C -> some commit /
company/repo_D
We are looking to implement code ...
0
votes
0
answers
54
views
Why does GitHub only provide 'x-ms-blob-content-md5' for zip files?
> curl -IL https://github.com/pH200/sharp-layer/releases/latest/download/release-x64.zip | grep md5
x-ms-blob-content-md5: 1GjBkzlLBeHFFpHVMYME4g==
> curl -IL https://github.com/tailwindlabs/...
0
votes
1
answer
60
views
Why getting all PRs gives slightly less info than getting only one PR?
Using GitHub REST APIs, when I want to get a list of PRs, I can do GET /repos/{owner}/{repo}/pulls. When I want to get a specific PR, I can do GET /repos/{owner}/{repo}/pulls/{pull_number}. The former ...
3
votes
1
answer
231
views
GitHub Personal Access Token returns 401 "Bad credentials" but CLI works perfectly - What's the difference?
Problem Summary
All Personal Access Tokens return 401 Bad credentials when using curl or direct API calls, but GitHub CLI authentication works perfectly. This affects ALL tokens including newly ...
0
votes
0
answers
80
views
Decap CMS Local Proxy throws 404 Not Found from GitHub API for valid folder
Problem Description:
I am setting up a Decap CMS standalone instance with a local proxy backend to connect to a private GitHub repository. When I try to publish a new entry from the CMS UI, I ...
0
votes
2
answers
99
views
Search commit messages on all branches (including not fetched remote branches)
How can I search for some text in commit messages including not fetched remote branches. I'm aware of git log --grep "search text" but it doesn't search on remote branches if they are not ...
-1
votes
1
answer
52
views
How to disable automerge when creating a deployment?
I'm trying to create a deployment via the GitHub API.
According to the documentation:
auto_merge boolean
Attempts to automatically merge the default branch into the requested ref, if it's behind the ...
0
votes
1
answer
218
views
Models on GitHub Marketplace No Longer Accessible via PAT?
Yesterday, I tried using OpenAI and another model from the GitHub Marketplace, but I can no longer access them through a Personal Access Token (PAT).
HttpResponseError: (no_access) No access to model:...
0
votes
0
answers
57
views
How to get a list of commits that were force pushed using GitHub GraphQL API?
I have been trying to get a list of commits that were pushed to my repo using the --force push command.
I am doing this to identify which commits have potentially changed the history of the branch.
I ...
0
votes
0
answers
36
views
Unable to Get Issues Total Count from List Issues API since 2025-04-10
I'm encountering an issue with the GitHub List Issues API. Since April 10, 2025, I've found that it's no longer possible to obtain the total count of issues from the API response. I'm not sure if this ...
3
votes
1
answer
62
views
Why am I getting a 404 status code from my PUT method, when the GET method returns 200?
The method saveToDatabase() that I use to store the list of questions to my db.json on Github, returns 404 status code from the PUT method. Whereas, the same method returns a 200 status code when ...
0
votes
0
answers
161
views
How to trigger a Jenkins build on GitHub Pull Request without webhooks
I’m currently working on a CI/CD setup during my internship, and I want to trigger a Jenkins build automatically whenever a Pull Request (PR) is created on a GitHub repository.
Here’s my context:
I’m ...
1
vote
1
answer
134
views
Converting a newly created PR to draft if no reviewers assigned
I'm using a GitHub Actions workflow triggered by the pull_request event (opened and ready_for_review). If someone creates a pull request without assigning any reviewers, I want to automatically ...
0
votes
1
answer
80
views
Programmatically retrieving images from github issues, access token
I developed a nice workflow a few years ago to keep an inventory of items on our university's github enterprise instance; unfortunately changes to github Projects (Classic being sunset) and APIs have ...
1
vote
1
answer
555
views
Download artifacts from a different GitHub repo with gh cli
Looking at this documentation I can use curl version of the provided example:
curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer GITHUB_CODE" -H "X-...
1
vote
0
answers
149
views
Why does GitHub API /search/code return zero results when browser search works?
I’m trying to fetch all files of a particular extension (in this case, *.zip files) across all repositories in an organization using the GitHub API.
If I use the GitHub web search directly in the ...
0
votes
0
answers
147
views
How to use GitHub API to list packages associated with a repository?
Given a github.com organization and repo name, how can I list the associated packages for that repo? On the web UI, it automatically lists them, but I can't find an API to get the same information. ...
1
vote
0
answers
16
views
Why are GitHub Code Search results inconsistent between the website and the API?
I’m experiencing inconsistencies between GitHub’s website and the GitHub API when performing the same code search.
For example, when I use the following query:
q=%5C"X%2B%2B%5C"+%5C"%2B%...
0
votes
0
answers
34
views
Why does specifying multiple languages in GitHub Code Search API return different total counts?
I want to specify multiple languages (e.g., Java, C++, Python, Go) when sending a GET request to the GitHub Search API for code. I tried two different query formats, and while both return valid ...
0
votes
0
answers
60
views
Get file list comparing commits
I'm trying to compare two commits in GitHub using the Compare operation described in API documentation but I'm having an issue: the files field is always empty.
When I make the request I get the ...
-1
votes
1
answer
140
views
How to Access Global Repositories Using GitHub Enterprise API Instead of GitHub.com API?
I am trying to fetch repositories using the GitHub API, but authentication fails when using my GitHub Enterprise credentials. My enterprise account has a higher rate limit, so I want to access global ...
0
votes
1
answer
245
views
How do I use a GitHub PAT in a GitLab CI job to authenticate when using TFLint
We're getting rate limited by Github, when running tflint --init which is trying to pull (for example) the AWS plugin.
Example Output:
Installing "aws" plugin...
Failed to install a plugin; ...
1
vote
0
answers
58
views
Python script to detect stale users in GitHub organizations fails getting members activity
I have developed a Python script to detect stale users in GitHub organizations. In particular a script that gets all the users of a given GitHub organization and prints it's last activity date.
The ...
0
votes
1
answer
62
views
How to use the Github API to list all README's and concatenate their contents into one page dynamically? [closed]
I am setting up a central documentation repo using Github Pages.
I have a bash script that runs before deploying the pages that: dynamically looks at specific repos in a list that the doc repo has ...
-1
votes
1
answer
79
views
GitHub API - how to retrieve repos relevant for me?
I work in a large organization where we use GitHub. We would like to make an API call (REST or GraphQL) to GitHub to retrieve repos that are interesting to a specific logged in user - me for example. ...
0
votes
0
answers
14
views
Github submit issue using client/application token
With a personal access token I could submit a Github issue having stored the token in the authorization header but not with a client/application token. The two token types differ in the length and use ...
-1
votes
1
answer
68
views
How could i add suggestion markdown in a createReviewComment in octokit?
I'm trying to add a suggestion markdown when creating a comment like this:
await octokit.rest.pulls.createReviewComment({
repo: repo.repo,
owner: repo.owner,
pull_number: ...
4
votes
1
answer
69
views
How do I update a frozen python program when I publish a new version on my github repo?
I have created a python gui application that runs different processes and I am adding new features and bug fixes constantly. Multiple people use it and they are not very tech oriented so instead of ...
1
vote
0
answers
29
views
Github search using GitHub app primary key for auth
I'm developing a GitHub App that is intended to search for files within repositories in my organization. However, when performing a search using the GitHub API, the app is only returning public ...
0
votes
1
answer
56
views
Github App Can't Create Repo for Other Users
I created a Github App to allow login via Github to generate a UAT. This UAT is used to create a repository for the user. It works for the user I used to create and install the app. However, when I ...
0
votes
0
answers
48
views
How to get GitHub projectv2_item fields in key values using GraphQL
I want to export my GitHub Projects periodically to spreadsheet using GraphQL. I have multiple projects that have similar fields, e.g. Sprint, Epic, Deadline, Story Point.
I use GitHub Webhooks to ...
-3
votes
1
answer
31
views
Get the list of forceful merges without validating required checks in Github
I'm able to get a list of merged commits since 24 hours ago but I wanted to know the exact command to get a list of merges that have been forced merges ignoring the validating required checks from ...
0
votes
0
answers
101
views
Multiple file upload via Github REST API
I use GrahamCampbell/Laravel-GitHub (which is actually a Laravel-wrapper for KnpLabs/php-github-api) to commit files from my application to Github via REST API.
With $client->api('repo')->...
0
votes
1
answer
207
views
GitHub REST API returns empty array for custom repo properties
In our repo there are some custom project fields set up which I assume is what GitHub refers to as the custom properties. When trying https://api.github.com/repos/OWNER/REPO/properties/values as ...
-1
votes
1
answer
88
views
How can we search issues on github Rest API with parameters containing whitespace
I am trying to use the github api to search for pull requests that have a specific label.
Went through the documentation
https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28
And built ...
1
vote
0
answers
321
views
Get github issue timeline from Github GraphQL API
I have been trying for the past weeks to try and get some information about the issues I have in my repositories in GitHub. When I look into an issue, and i look at the timeline, I can see all the ...
2
votes
1
answer
107
views
Error fetching repositories: HTTP error! status: 401
So, I developed a portfolio website that fetches repositories and details from GitHub and send it to my website. While using localhost everything was working fine but as i deployed the code in Vercel ...
0
votes
2
answers
117
views
Unable to update PR with a verified commit created by createCommitOnBranch
My goal is to generate verified commits, using GitHub's Graphql API. I created a test repository to validate the verified PR creation, and I see the GitHub Action generating the new README.md file. ...
0
votes
0
answers
17
views
How do you specify a nested path when calling Github API to create a file?
For creating content in Github using the API, how do you specify a nested path?
https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents
0
votes
0
answers
77
views
Not able to create a repo using template repo GIthub API
I have generated a personal access token and configured Single Sign-On (SSO), providing full authorization to the token. The issue I'm facing is that while I can successfully create GitHub ...
0
votes
0
answers
1k
views
GitHub enterpise Copilot SSO - Unable to login from VS code/Visual studio - language model unavailable
We have enabled SSO from Azure to GitHub Enterprise and it works.
Enabled Copilot and it works as well from Web browser.
But getting "language model unavailable" error when using GitHub ...
0
votes
2
answers
368
views
How to auto close GitHub issue using GitHub CLI in GitHub Actions
I would like to automatically close the issue once it is created. For this I referred to Actions marketplace and this action. Currently my code in YAML file looks like below. GitHub token is saved in ...
0
votes
1
answer
252
views
github api (gh api) workflow runs endpoint not working with query parameters
when I run this, I get results gh api repos/myorg/myrepo/actions/workflows/my-workflow.yaml/runs. I wish to just grab runs from master branch, instead of doing that filtering afterwards. According to ...
1
vote
0
answers
130
views
Github access token for Apps
I have a GitHub App configured with a Webhook that listens to Github events. The App is installed on a private repo and has both read and write permissions. git clone https://x-access-token:<TOKEN&...