[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)

Nov 28

In the demo, the OpenCode agent calls the GitHub CLI to pull PR data, compare diffs, and generate a summary, and the entire process runs locally except for Git commands.

Unverified50%
Nov 18

You can open a Pull Request via `gh pr create`, and merge it by clicking merge on the web page or via the command line `gh pr merge <number> --merge`.

Unverified50%
Nov 18

Issues are not a Git feature but a task list provided by remote platforms such as GitHub; you can use `gh issue create` to create tasks, and add labels to Issues and assign them to specific people or Agents.

Unverified50%
Nov 18

Before pushing the repository to GitHub, all operations happen only locally; the GitHub CLI (`gh`) can handle logging in, creating a remote repository, linking the remote, and pushing.

Unverified50%
Nov 13

Some advanced features require an authenticated GitHub CLI for the PR monitor, as well as access to other vendors' models.

Unverified50%
Nov 12

The fifth section of the course showcases a set of mechanisms for improving efficiency, including YOLO mode for managing access permissions, custom slash commands, multi-agent systems, hooks, the creation and reuse of skills, building self-improving agents, validation techniques combined with test-driven development, and the coordinated use of command-line tools such as GitHub CLI, Google CLI and Python CLI.

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 19

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

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%

6 more timeline events

All Facts (17)

Unverified

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

85%
Unverified

You can open a Pull Request via `gh pr create`, and merge it by clicking merge on the web page or via the command line `gh pr merge <number> --merge`.

50%
Unverified

Issues are not a Git feature but a task list provided by remote platforms such as GitHub; you can use `gh issue create` to create tasks, and add labels to Issues and assign them to specific people or Agents.

50%
Unverified

Before pushing the repository to GitHub, all operations happen only locally; the GitHub CLI (`gh`) can handle logging in, creating a remote repository, linking the remote, and pushing.

50%
Unverified

Some advanced features require an authenticated GitHub CLI for the PR monitor, as well as access to other vendors' models.

50%
Unverified

The fifth section of the course showcases a set of mechanisms for improving efficiency, including YOLO mode for managing access permissions, custom slash commands, multi-agent systems, hooks, the creation and reuse of skills, building self-improving agents, validation techniques combined with test-driven development, and the coordinated use of command-line tools such as GitHub CLI, Google CLI and Python CLI.

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

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

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

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

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

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%
Unverified

In the demo, the OpenCode agent calls the GitHub CLI to pull PR data, compare diffs, and generate a summary, and the entire process runs locally except for Git commands.

50%

Source Articles