Command patterns for morning GitHub brief
Use these as reusable building blocks.
1) Ask-signals (mentions / review requests / assignments)
gh api notifications \
--jq '[.[] | {reason, repo: .repository.full_name, title: .subject.title, api_url: .subject.url}]'Filter reasons of interest:
mentionreview_requestedassign
Convert API URLs to web links when needed:
/repos/<o>/<r>/pulls/<n>->https://github.com/<o>/<r>/pull/<n>/repos/<o>/<r>/issues/<n>->https://github.com/<o>/<r>/issues/<n>
2) Open PR triage
gh pr list -R <owner/repo> --state open --limit 100 \
--json number,title,reviewDecision,mergeable,isDraft,updatedAt,url,authorFor checks (single PR):
gh pr checks <number> -R <owner/repo>Quick classification heuristic:
- Merge candidate:
reviewDecision=APPROVED+mergeable=MERGEABLE+ checks green. - Fast review: non-draft, clean mergeability, recent updates.
- Blocked:
mergeable=CONFLICTINGor failing required checks.
3) Project board snapshot (Project v2)
gh project item-list <project_number> --owner <org_or_user> --format jsonCount items by status and provide top examples per bucket.
4) CI risk scan
gh run list -R <owner/repo> --branch main --limit 10 \
--json workflowName,status,conclusion,url,createdAtFlag newest failures and link directly to runs.
5) Security alerts (Dependabot)
gh api repos/<owner>/<repo>/dependabot/alerts \
--jq '[.[] | select(.state=="open") | {number, severity: .security_advisory.severity, package: .dependency.package.name, url: .html_url}]'Prioritize critical / high.
6) Suggested brief structure
#cron_work_morning
<1 short paragraph: what matters now>
Ask-signals:
- ... (with links)
Project/PR snapshot:
- ...
Risks:
- ...
3 concrete actions:
1) ...
2) ...
3) ...7) Non-destructive mode
Default to read/analyze only. Do not merge PRs, post reviews/comments, or edit project fields unless explicitly requested.