Receber por email
← Voltar para o catálogo

github-cli

Oferece fluxos de trabalho avançados do GitHub CLI para revisão de PRs, depuração de CI/CD, gerenciamento de Actions, consultas de API e busca de código. Útil para chamadas complexas à API gh ou gerenciamento de fluxos de trabalho em vários repositórios, não sendo necessário para comandos gh básicos.

556estrelas
Atualizado há 2 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add majiayu000/claude-skill-registry

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/github-cli/svg)](https://www.skillteca.com.br/skills/github-cli)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

GitHub CLI Workflows

Advanced reference for GitHub CLI operations. Requires gh to be installed and authenticated.

Documentation: https://cli.github.com/manual/

For basic commands (create/list/view PRs, issues, repos, releases), see references/basic-commands.md.

Prerequisites

If gh is not installed or not authenticated, instruct the user to run:

# Install: brew install gh (macOS) or see https://github.com/cli/cli/blob/trunk/docs/install_linux.md
gh auth login
gh auth status

PR Review & Inspection

# Review actions
gh pr review 123 --approve
gh pr review 123 --request-changes --body "Please fix..."
gh pr review 123 --comment --body "Looks good but..."

# Merge
gh pr merge 123 --squash --delete-branch

# Checks, diff, comments
gh pr checks 123
gh pr diff 123
gh api repos/{owner}/{repo}/pulls/123/comments

Actions / Workflows

# List runs (optionally filter by workflow)
gh run list
gh run list --workflow build.yml

# Inspect a run
gh run view 12345
gh run view 12345 --log

# Re-run failures
gh run rerun 12345 --failed

# Watch a running workflow
gh run watch 12345

API Access

# REST
gh api repos/{owner}/{repo}
gh api repos/{owner}/{repo}/issues --method POST --field title="New issue" --field body="Description"

# GraphQL
gh api graphql -f query='{ viewer { login } }'

# Pagination
gh api repos/{owner}/{repo}/pulls --paginate

Search

gh search code "function_name" --repo owner/repo
gh search issues "bug" --repo owner/repo --state open
gh search prs "feature" --repo owner/repo --state open

Tips

  • Use --json flag with --jq for structured output: gh pr list --json number,title --jq '.[].title'
  • Use --web to open any resource in your browser
  • Set GH_REPO environment variable to avoid specifying --repo each time
  • Use gh alias set to create custom shortcuts
  • GitHub CLI respects GITHUB_TOKEN environment variable for authentication
Compartilhar X LinkedIn