Hunt the issue/PR queue for highest value-over-risk wins: clean focused community PRs, already-implemented issues to close, safe quick-fixes.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-gh-treasure-hunt-837d54ed0f94 ,按照其中的说明把「gh-treasure-hunt」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Hunt the open queue for the highest value-over-risk wins fast: clean focused community PRs, issues the branch already implements, and safe quick-fixes. Output a ranked action list with credit handling. Never act on title or labels alone, and never merge/close/tag without maintainer approval.
gh pr list --repo Hmbown/CodeWhale --state open --limit 200 \
--json number,title,author,headRefName,baseRefName,isDraft,mergeable,mergeStateStatus,additions,deletions,changedFiles,reviewDecision,labels,url
gh issue list --repo Hmbown/CodeWhale --state open --limit 300 \
--json number,title,author,labels,milestone,url
mergeable=MERGEABLE, low
changedFiles/additions, not draft, no trust-boundary surface: auth,
sandbox, install, publish, branding). Flag any NEW contributor for credit.gh pr view N --repo Hmbown/CodeWhale \
--json files,commits,reviews,comments,statusCheckRollup,closingIssuesReferences
gh pr checks N --repo Hmbown/CodeWhale
mergeable flag lies):
git fetch origin pull/N/head:refs/tmp/pr-N
base=$(git merge-base <release-branch> refs/tmp/pr-N)
git merge-tree "$base" <release-branch> refs/tmp/pr-N # empty/no conflict markers == clean
git grep -n "DEEPSEEK_BASE_URL" <release-branch>
If the branch already covers it, draft a close-with-evidence note linking the
commit/lines and crediting the reporter. Hold the close for approval..github/AUTHOR_MAP first (else derive the noreply id):
gh api users/HANDLE --jq '"\(.id)+\(.login)@users.noreply.github.com"'
Co-authored-by: Name <ID+handle@users.noreply.github.com>
Harvested from PR #N by @handle
The Harvested from PR #N by @handle line lets auto-close-harvested.yml
close the PR with credit once the commit reaches main. Validate trailers:
git log BASE..HEAD --format='%h %an <%ae>%n%(trailers:key=Co-authored-by)' # credit the human, from .github/AUTHOR_MAP
cargo fmt --all -- --check && cargo test --workspace
main-based clean flag for a release branch; run git merge-tree
against the real landing branch.Write treasure.md:
.github/AUTHOR_MAP gaps per win;