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

Issue executing Github Actions

I have an Android Studio project connected to GitHub Actions, but my GitHub actions started to fail and I don't know the reason. For example, the log of working actions was: Fetching gem metadata from https://rubygems.org/. 31 Following files may…
Yupi
  • 4,402
  • 3
  • 18
  • 37
0
votes
1 answer

Unable to run `gh auth login --with-token < token` in a Docker container

Running gh auth login --with-token < token inside an Ubuntu 22.04 Docker image fails with: error validating token: Get "https://api.github.com/": x509: certificate signed by unknown authority I can reproduce this error by running: docker run -it…
sage
  • 4,863
  • 2
  • 44
  • 47
0
votes
0 answers

gh command not found, even after installation

I recently have uninstalled Homebrew, as I don't need it anymore, which I previously have installed Github CLI through. I am using WSL2 to re-install Github CLI using the official provided script. I get no error messages during installation process,…
spenpal
  • 106
  • 6
0
votes
1 answer

gh workflow run not working for particular branch

I've two branch in my repo i.e main and kaju1, On main branch (default), there are two workflow defined push.yml and test.yml. On kaju1 branch, there are three workflow defined push.yml, test.yml, and pr.yml. I want to trigger pr.yml i.e on kaju1…
Tanishk
  • 72
  • 1
  • 7
0
votes
1 answer

how to parse package.json version for github "gh release" tag?

I want to create a single command that would do following: increase the package.json version (I could do this by running npm version patch) create Github release with that version as tag (not sure how to achieve this step?) Brownie points if I…
GorvGoyl
  • 42,508
  • 29
  • 229
  • 225
0
votes
0 answers

How to add flags in Github CLI

I'm trying to search the net and I've found this documentation regarding issues. But I don't know how to add flags in the command. Can someone enlighten me about this? This is the command that I'm trying to run. This is the link of the parameters:…
0
votes
1 answer

Is it possible to use the Github CLI to find out when an issue in a board has moved from one column to the next?

I'm writing a script for tracking issues in a board on Github. There is a json field updatedAt, that allows me to know when an issue has been updated, but I need to know if that update was because it moved from one column to another, specifically…
compguy24
  • 937
  • 16
  • 33
0
votes
0 answers

How to list issues assigned to me on github repo along with their links

I need to list the issues assigned to me on the github repo org/examplerepo on my terminal along with links to them. Is there some way i can do it. I am using the blow command. its displaying the issues and issue numbers, tags etc.. in a beautiful…
anandhu
  • 686
  • 2
  • 13
  • 40
0
votes
1 answer

Github - Git CLI: How to clone all repositories in directory

I can individually clone using "gh repo clone reponame". and list them using "gh repo list ORGNAME" But how do I automatically clone all of them in the list thanks gh repo clone reponame gh repo list ORGNAME
Somguy
  • 1
0
votes
0 answers

How to install github CLI inside jenkins pipeline

am trying to install github cli in the jenkins pipeline using this commands from github CLI docs : type -p curl >/dev/null || sudo apt install curl -y curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd…
0
votes
1 answer

gh cli create release from tagged draft template

Let say I have release draft template tagged 1.10 Now I would like to publish a new 1.10 release from this draft with gh cli but I see no options for that or do not understanding how can I achieve it If I run gh release create 1.10 --generate-notes…
Ihar Aliakseyenka
  • 9,587
  • 4
  • 28
  • 38
0
votes
1 answer

How do I tell the GitHub CLI to use a specific SSH key?

I have various GitHub accounts and for each account I have SSH set up. So under ~/.ssh I have a public and private key for each account. I want to use the GitHub CLI, but I am not sure how I can tell the CLI to use a particular SSH key. In case it…
J86
  • 14,345
  • 47
  • 130
  • 228
0
votes
1 answer

How to upload the right Project to Github from the Linux Terminal

I am very new with git so maybe this is a newbie question. I have a React project that I want to upload to GitHub, I already have my token and I've used Github-ClI in order to set up my account, so far I though everything worked just fine. I created…
0
votes
1 answer

Github CLI steps to upload files

i'm trying to upload files with GitHub CLI but i'm enable to know tasks i have to perform i can upload with git CLI (before i created the Github repo manually with webbrowser) git init // create a local repo cd // writing README…
redrabbit
  • 41
  • 5
0
votes
1 answer

`github workflow run` forcing me to give a value for non-required value

I have a GitHub action that is only run manually for creating a build and publishing it either to PyPI or to Test PyPI (or both) on: workflow_dispatch: inputs: pypi: description: 'Release to PyPI' required: false …
Frank Yellin
  • 9,127
  • 1
  • 12
  • 22