[KongchangAI]
Productgh

GitHub CLI

GitHub's official command-line tool that supports managing repositories, issues, pull requests, and CI run logs from the terminal. It is often used to output GitHub status as text that AI agents can read.

Timeline (last 90 days)

Oct 19

When `gh api --paginate` is used to fetch PR review comments, this endpoint returns 30 comments per page by default.

Unverified50%
Oct 19

`gh issue view --comments` brings out the full comment thread of an issue.

Unverified50%
Oct 19

The `--log-failed` argument of `gh run view` outputs only the logs of failed steps, skipping the logs of passing steps.

Unverified50%
Oct 18

The author proposes three countable output metrics—Landed, Dropped, and Reverted—tallying respectively the number of tasks merged into the release branch, the number of PRs closed without being merged, and the number of changes reverted after being merged.

Unverified50%
Oct 17

The --paginate option of gh api graphql requires the query to contain the $endCursor variable and the hasNextPage and endCursor fields in pageInfo in order to work properly.

Unverified50%
Oct 16

az account set, gh auth switch, and gcloud config configurations activate all rewrite a file in the user's home directory, and that file is shared by all terminals and tools.

Unverified50%
Oct 16

When the GH_TOKEN or GITHUB_TOKEN environment variable is present, the gh CLI uses that token for all commands instead of the login credentials, and gh auth status only checks locally stored login credentials and is not aware of environment variables.

Unverified50%
Oct 16

gh pr checks --watch waits for the checks, and --fail-fast stops at the first failure.

Unverified50%
Oct 16

In the GitHub CLI, when the --base parameter is not passed, gh pr create uses the branch's gh-merge-base configuration to determine the base branch.

Unverified50%
Sep 21

The evolution path of CLI tools reducing complex cloud operations to scriptable atomic commands is consistent with tools such as GitHub CLI (gh), gcloud, and aws.

Unverified50%

All Facts (11)

Unverified

Cursor的Agent可以调用终端中安装的任何CLI工具,如GitHub CLI、AWS CLI、Docker等

85%
Unverified

When `gh api --paginate` is used to fetch PR review comments, this endpoint returns 30 comments per page by default.

50%
Unverified

The `--log-failed` argument of `gh run view` outputs only the logs of failed steps, skipping the logs of passing steps.

50%
Unverified

`gh issue view --comments` brings out the full comment thread of an issue.

50%
Unverified

The author proposes three countable output metrics—Landed, Dropped, and Reverted—tallying respectively the number of tasks merged into the release branch, the number of PRs closed without being merged, and the number of changes reverted after being merged.

50%
Unverified

The --paginate option of gh api graphql requires the query to contain the $endCursor variable and the hasNextPage and endCursor fields in pageInfo in order to work properly.

50%
Unverified

az account set, gh auth switch, and gcloud config configurations activate all rewrite a file in the user's home directory, and that file is shared by all terminals and tools.

50%
Unverified

When the GH_TOKEN or GITHUB_TOKEN environment variable is present, the gh CLI uses that token for all commands instead of the login credentials, and gh auth status only checks locally stored login credentials and is not aware of environment variables.

50%
Unverified

In the GitHub CLI, when the --base parameter is not passed, gh pr create uses the branch's gh-merge-base configuration to determine the base branch.

50%
Unverified

gh pr checks --watch waits for the checks, and --fail-fast stops at the first failure.

50%
Unverified

The evolution path of CLI tools reducing complex cloud operations to scriptable atomic commands is consistent with tools such as GitHub CLI (gh), gcloud, and aws.

50%

Source Articles