[READ-ONLY] Mirror of https://github.com/shuuji3/github-playground. Playground to test GitHub & Git
0

Configure Feed

Select the types of activity you want to include in your feed.

github-playground / README.md
811 B

github-playground#

Playground to test GitHub & Git

CLI tool for GitHub#

cli/cli: GitHub’s official command line tool

gh is a CLI tool developped by GitHub itself.

github/hub: A command-line tool that makes git easier to use with GitHub.

There is also hub CLI tool for GitHub which is another popular one for a long time.

How to use gh CLI#

Issue#

You can create a issue from CLI by running the following command:

gh issue create --repo "$REPOSITORY" --title "$ISSUE_TITLE" --body "$ISSUE_BODY"

Pull-Request#

You also create a pull-request to the upstream repository from the current local branch:

gh pr create --base master --title "$PULL_REQUEST_TITLE" --body 'This PR closes #123456.'