Skip to main content
Filter by
Sorted by
Tagged with
-4 votes
1 answer
157 views

I'm using GitHub CLI and PowerShell, and I want to list all branches from every repository under a specific GitHub username. gh repo list only returns the repo names, but I want a way to loop through ...
Charan Munur's user avatar
2 votes
0 answers
343 views

I would like to get the Github CLI to give me JSON output including all JSON fields (I find it easier to see what's available and useful by quickly checking example output rather than deciphering ...
Cornelius Roemer's user avatar
3 votes
1 answer
505 views

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 ...
Rebuild Factoryz's user avatar
0 votes
1 answer
166 views

I have done the following: Create a folder called "TestGitHubCliRepo". Create a file named "README.md" inside the folder. Go to the folder in terminal. Run git init. Run gh repo ...
Mr. X's user avatar
  • 1,037
1 vote
1 answer
120 views

I have owner rights on different GitHub organizations and admin rights on a lot of the repositories in these organizations. I am now working on a script that can create and delete repos using gh. So I ...
hepabolu's user avatar
  • 1,304
-1 votes
2 answers
148 views

I was using gh cli to create a new repository and clone immediately to use using the gh repo create <reponame> --public --clone and involuntarily I pushed on the main branch and realized that gh ...
Rakshit Ambi's user avatar
0 votes
0 answers
149 views

We have a github project with custom field such as Sprint and story points. Below is the sample query that I am trying using Octokit.GraphQL.Net var query = new Query() .Repository("my-repo",...
Praveen Raghuvanshi's user avatar
1 vote
1 answer
663 views

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-...
dododo's user avatar
  • 4,844
0 votes
1 answer
286 views

I am the admin of my github organization. I want to get organization member emails from their username. I have the following gh cli command that will give me all members, but I want a specific member. ...
Rosey's user avatar
  • 871
0 votes
0 answers
39 views

I have a project in visual studio code, but has to port forwarded through the Ports tab's port forwarding feature. I am trying to make a powershell/batch script to automate the awkwardly long process ...
Jude Hopper's user avatar
0 votes
1 answer
204 views

I have a jq process that looks at the values of a JSON file, checks a few things, and then determines if the current object is available to perform something against. The problem I have right now is ...
Adam J's user avatar
  • 508
-1 votes
1 answer
348 views

I am using Superlinter actions in GitHub Actions for code linting. I would like to trigger action once issue is created, and capture error that is raised by SQLFluff (Linter in SuperLiner) into the ...
biggboss2019's user avatar
0 votes
2 answers
412 views

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 ...
biggboss2019's user avatar
1 vote
1 answer
115 views

I recently started using the GitHub CLI to manage multiple GitHub accounts on the same device. However, I've been unable to push code to a repository I was added to. I've checked, and the account I'm ...
David Ekete's user avatar
-1 votes
1 answer
49 views

I needed to switch github accounts to push something to a company github account. I tried to change to my new username but constantly get rejected. remote: Permission to Company/project.git denied ...
dylatwork's user avatar
0 votes
1 answer
187 views

I've accidentally created a gist as secret gist via the gh (GitHub) CLI. I'd like to make this secret gist now public. What CLI command can I use for this? Or is this feature not available in the CLI (...
Cornelius Roemer's user avatar
4 votes
1 answer
1k views

I was trying to upgrade all Homebrew packages with brew upgrade and encountered the following error: unknown command "attestation" for "gh"
Sagar's user avatar
  • 1,910
4 votes
1 answer
3k views

I'd like to do gh auth login on a headless server and still use the browser based flow (instead of the token). How do I do this? By default nothing happens after pressing "Enter" here: $ gh ...
Cornelius Roemer's user avatar
0 votes
0 answers
53 views

The --limit option of gh has an upper value limit. This is set to reasonable values, and for understandable reasons; as discussed here. It can be convenient to format the output of gh as JSON, and ...
user2023370's user avatar
  • 11.3k
0 votes
0 answers
47 views

I am trying to install an internal python package via pip install -r requirements.txt requirements.txt black numpy scipy interpackage @ git+ssh://[email protected]/..... otherpackage @ git+ssh://git@...
DOOM's user avatar
  • 1,254
0 votes
0 answers
255 views

We are using dev branch for dev env and main branch for test env. I need to create a auto merge PR from dev to main branch via GitHub actions once the dev environment deployment is completed. So ...
sai supraja's user avatar
2 votes
2 answers
347 views

Within Python, I am trying to capture the full stderr output produced from the shell command: $ gh repo fork --remote ! knoepfel/larvecutils already exists ✓ Using existing remote origin The python ...
Kyle Knoepfel's user avatar
0 votes
0 answers
495 views

I'm stuck in my CI/CD pipeline between Github Actions and AWS S3. I wrote a YAML script to deploy my website to S3, but when I push my website to the remote Github repository, it doesn't deploy to my ...
hohel's user avatar
  • 1
0 votes
1 answer
1k views

I would like to comment on a pull request from a script using gh github cli. When using the web interface one could click on a change, like in: How can I manually add suggestions in code reviews on ...
Simson's user avatar
  • 3,571
0 votes
1 answer
321 views

I am trying to query the GitHub API using gh and use the returned JSON to give me a list of repos that have matches for my search, and against each repo, I want a list of the filenames that need ...
Rumbles's user avatar
  • 1,413
1 vote
1 answer
1k views

I created a GitHub Actions workflow that should add a branch protection rule so that a commit on the main branch is only possible via a PR. The PR should have at least 1 reviewer. I have the following ...
Dom's user avatar
  • 567
-1 votes
1 answer
259 views

I am trying to implement a GitHub Actions workflow that automatically labels an issue as "blocked" if it has dependencies on tasks that are still in progress. The action should be triggered ...
Albus_Percival's user avatar
-1 votes
1 answer
353 views

I am trying to implement a GitHub Actions workflow that automatically labels an issue as "blocked" if it has dependencies on tasks that are still in progress. The action should be triggered ...
Albus_Percival's user avatar
3 votes
1 answer
1k views

I have an old branch locally on my computer, I am interested in checking if that branch has (or had) a PR (open, merged or closed) to our GitHub repo. The repo is set as the remote origin. How can I ...
TomNorway's user avatar
  • 3,272
0 votes
1 answer
225 views

How do I go about displaying display tables from the gh cli output? E.g. I want to display the labels for a certain set of PRs along with the PR information Doing the below does not work > gh pr ...
Mayank's user avatar
  • 23
1 vote
1 answer
1k views

I'm trying to download assets from a release on a private repository. My current code would be: run: gh release download release -R Hostname/RepoName -D This only works if the repository is public. ...
Redbuck's user avatar
  • 11
0 votes
1 answer
145 views

I have a GitHub Actions workflow in place that is triggered whenever a PR is closed and merged. This action automatically generates an APK and attaches it to a new GitHub release with a specific tag. ...
nogabemist's user avatar
0 votes
0 answers
215 views

GitHub let's me create tasks lists in the issue specification like so: - [ ] #1 - [ ] https://github.com/desktop/desktop/pull/1 which will create a special relationship called "Tracked In" ...
surchs's user avatar
  • 473
0 votes
1 answer
3k views

Deployment Failed. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip. Remote build. Error: Failed to deploy web package to App Service. Error: Deployment Failed, Package deployment ...
fahad almaani's user avatar
0 votes
1 answer
976 views

I have this search via the code browser: repo:RapidCircle/vscode path:.vscode/ It searches for a path inside a repository and it does returns results. No matter how I try it to translate it to ...
Laszlo's user avatar
  • 371
0 votes
2 answers
862 views

I use the gh command to list and print all issues to a CSV file, but I can't get the all assignees also. The complete command I use: gh issue list --limit 1000 --state all | tr '\t' ',' > issues....
acun's user avatar
  • 57
4 votes
1 answer
4k views

According to GitHub Docs, one can use GitHub CLI commands in a workflow. I am trying to programmatically update the description of the repository from a workflow in that repository, and the only ...
AAriam's user avatar
  • 477
0 votes
0 answers
429 views

this command gh issue list --limit 10000 --state all --json number,title,assignees,state,labels,url |^ jq -r '["number","title","assignees","state","labels&...
Roberto's user avatar
  • 41
0 votes
1 answer
2k views

When trying to run gh release create v0.0.1 -R https://github.com/path/to/repo I get a an error as below. HTTP 400: Invalid target_commitish parameter (https://api.github.com/repos/path/to/repo/...
SBUK-Tech's user avatar
  • 1,435
0 votes
1 answer
682 views

I am trying to run in a loop some gh api GET commands (Github cli), but it stops once it hits any error (e.g., the url not found or whatever it was filtered on and looking for was not found). I would ...
archcutbank's user avatar
0 votes
0 answers
111 views

GHA workflow step: - name: create release run: | gh release create v1.0.0 --repo myrepoowner/myrepositoryname/Release --title "My Release" --notes "This is the first version of my ...
jackazjimmy's user avatar
0 votes
1 answer
303 views

I try to manage my Github Repo Settings from a Github Actions workflow to ensure there are no unwanted changes and everything is consistent across lots of repos (I want to use the same workflow for ...
Sebastian Sommerfeld's user avatar
0 votes
1 answer
468 views

Git diff tag1.2 tag1.5 Output for the above command is **Tag Some character @@262728 { 'Code-version':'1.5', 'changes':[ 'code-repo':'2.1'] } **Tag Some character @@262728 { 'Code-version':'1.4', '...
Saravana Kumar's user avatar
0 votes
1 answer
3k views

After a pull request is merged to a branch, how can I obtain the details/info about that newly-merged PR (the PR number, message, merge time, etc.) using the Github CLI?
mmarion's user avatar
  • 1,105
0 votes
1 answer
284 views

I have cloned a fork repo using GitHub CLI gh: gh repo clone felipeplets/Auto-GPT In order to check out an upstream branch locally I then ran: git fetch --all git switch -c stable upstream/stable I ...
Felipe Plets's user avatar
  • 7,570
0 votes
0 answers
276 views

Using gh search reports that there is a test003 repo. Why does it report that the test003 repo does not exist in the second command? PS C:\> gh search repos 'user:Liturgist' Showing 2 of 2 ...
lit's user avatar
  • 16.5k
2 votes
1 answer
237 views

Build image deploy error [Disclaimer: I'm a beginner on deployment of apps] Hi there, I tried to deploy my web page (Nextjs) on Netlify and I'm getting a weird error on github CLI. When I see the logs ...
Simão Quintela's user avatar
0 votes
1 answer
677 views

I was using following GitHub CLI command to add new member to a GitHub org through the command line. I am using the username to add: # GitHub CLI api # https://cli.github.com/manual/gh_api gh api \ ...
Shreenivasa Y G's user avatar
2 votes
0 answers
1k views

I am trying to clone a repository from my GitHub account. I have logged into my account using: > gh auth login --with-token < gh-token.txt > gh --version gh version 2.4.0+dfsg1 (2022-03-23 ...
Mogur's user avatar
  • 21
0 votes
2 answers
1k views

I am trying to create a repo using GitHub cli the command that I've used is gh repo create <repo name> but I am getting the following error --public`, `--private`, or `--internal` required when ...
Parikshit Singh's user avatar

1
2 3 4 5