Questions tagged [github-cli]

The Github CLI ("gh") is a tool for interacting with your repositories on Github straight from the command line.

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal.

Useful links:

184 questions
0
votes
0 answers

git - fatal: unknown index entry format 0x632f0000

When I'm trying use git add . im getting a error: fatal: unknown index entry format 0x632f0000 I have tried to reinitialize the file but I keep getting the same error. Since I am new to git I am very overwhelmed by this whole push pull thing but I…
0
votes
0 answers

unknown command "clone" for "gh"

I have started using github-cli on two machines (laptop and desktop). i logged in useing gh and it works. if u use gh clone https://github.com/ repo-link /code.git i get this error: unknown command "clone" for "gh" i installed it like…
SL5net
  • 2,282
  • 4
  • 28
  • 44
0
votes
1 answer

gh: command not found in Jenkins pipeline

I am trying to run below command in Jenkins pipeline $ gh pr create --title "The bug is fixed" --body "Everything works again" $ gh pr create --reviewer monalisa,hubot --reviewer myorg/team-name $ gh pr create --project "Roadmap" $ gh pr create…
Avinash Dalvi
  • 8,551
  • 7
  • 27
  • 53
0
votes
1 answer

GitHub CLI approve Pull Request as different user in GitHub Actions

I have GitHub action that approves a Pull Request: - name: Approve a PR run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN:…
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
2 answers

How do I authenticating to remote repo inside Github Action using GH CLI?

I am having an issue with the following segment of a Github Action/Workflow which is meant to pull the PR list (with some filtering) of a remote, private repo (e.g. not the repo that contains the Action itself). - run: echo "PR2=$( gh pr list…
0
votes
1 answer

Updating a file for a quick-pull using github cli

Currently in the github UI, a user can edit a file and create a new branch in a single action. This can also be done through the github api using something like this: curl 'https://github.com///tree-save/master/' \ …
JRogerC
  • 598
  • 6
  • 17
0
votes
1 answer

How to get list of previous job runs from GitHub Actions?

I want to see history of successful/failed job runs to see if job is stable enough to make it required. Is there a way to show a list of about 100 previous runs of one particular job? Currently I see only list of workflows and I have to click trough…
0
votes
1 answer

creating table in github issues using gh cli

I am working with bash and gh cli to create a table for a summarized report that goes into a newly created issue. I am stuck on 2 problems: I want the table to look like a markdown table, likewise: Severity Type Issue URL But, the special…
Killerz0ne
  • 254
  • 1
  • 2
  • 12
0
votes
1 answer

use gh cli to create issues list

I am trying to create an array of opened issue numbers from GitHub. I am using the following command to pull all the opened issue numbers we have in a specific repo and label: issueNumList=$(gh issue list -R -l "label" | cut -f1) the…
Killerz0ne
  • 254
  • 1
  • 2
  • 12
0
votes
1 answer

github-cli unknown command "run" for "gh workflow"

I have started using github actions recently and i wanted to use the github-cli for actions and I have been following a tutorial on how to manually run a workflow: https://cli.github.com/manual/gh_workflow_run Well, on my machine I get the…
XapaJIaMnu
  • 1,408
  • 3
  • 12
  • 28
0
votes
1 answer

GitHub CLI Download specific file from specific release

I've tried multiple ways to download a specific File from a specific Release, but it doesn't work. Windows Version: gh version 1.6.2 (2021-02-23) https://github.com/cli/cli/releases/tag/v1.6.2 gh release view updates-2021-02-21 -R knah/VRCMods…
0
votes
2 answers

Can someone tell me how I can get the master branch on my local repo to reflect the master branch on the remote repo?

I somehow set my head to a different address. I probably did a accidental checkout and reset head to point somewhere else. The issue now is that now the local repo's master branch is pointing to a random head from a few weeks ago.How can i set the…
UI Developer
  • 167
  • 6
  • 16
0
votes
1 answer

github cli multiple accounts

I am trying to use GitHub CLI. So far I am able to use it to list out PRs in our company's repo. The issue is when I try to checkout a PR via gh pr checkout 123 where 123 is the PR number. When I do so I get this error: git@github.com: Permission…
0
votes
1 answer

Unable to update GitHub CLI on Windows to version 1.5.0 using Scoop

Earlier today I have installed GitHub CLI package on my windows 10 machine, while I was writing an article about how to install and config GitHub CLI on windows. for that purpose I have installed Scoop and use it with running scoop install gh to…
Nima Bastani
  • 185
  • 11
0
votes
1 answer

how to run github cli in container as random user

I have managed to install github cli in container but I am unable to run it as a random user (open shift does runs containers as random user due to security) What directories should I create/chmod/chown beforehand to make it work? THANK YOU! docker…
user_pruser
  • 422
  • 2
  • 13
1 2 3
12
13