gh
Table of Content
gh¶
https://docs.github.com/en/github-cli/github-cli/about-github-cli
https://github.com/cli/cli/blob/trunk/docs/install_linux.md
installation on linux¶
installation
sudo mkdir -p -m 755 /etc/apt/keyrings && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
installation on macbook¶
clone¶
issue¶
https://cli.github.com/manual/gh_issue_create
gh issue create -a "@me" --label LABEL --title ISSUE_TITLE --body ISSUE_BODY
# multiple labels
gh issue create --label "bug,help wanted"
Example creating, listing, and viewing gh issue
>❯ gh issue create -a @me --label documentation --title "Homelab Book Outline" --body "Create a file with the outline of the new book on building homelab kubernetes"
Creating issue in pkkudo/zenn
https://github.com/pkkudo/zenn/issues/10
❯ gh issue list
Showing 1 of 1 open issue in pkkudo/zenn
ID TITLE LABELS UPDATED
#10 Homelab Book Outline documentation less than a minute ago
❯ gh issue view 10
Homelab Book Outline pkkudo/zenn#10
Open • pkkudo opened less than a minute ago • 0 comments
Assignees: pkkudo
Labels: documentation
Create a file with the outline of the new book on building homelab kubernetes
View this issue on GitHub: https://github.com/pkkudo/zenn/issues/10