From 29ddcc688e765e98b5f16fe2d48780edcb3898ff Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 6 May 2026 02:28:14 +0100 Subject: [PATCH] docs: require global GitHub activity in PR triage --- .agents/skills/openclaw-pr-maintainer/SKILL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.agents/skills/openclaw-pr-maintainer/SKILL.md b/.agents/skills/openclaw-pr-maintainer/SKILL.md index 79ccab4e128..97cef15b34e 100644 --- a/.agents/skills/openclaw-pr-maintainer/SKILL.md +++ b/.agents/skills/openclaw-pr-maintainer/SKILL.md @@ -29,7 +29,7 @@ gitcrawl cluster-detail openclaw/openclaw --id --member-limit 20 -- - For every reviewed, triaged, closed, or landed issue/PR, show the opener's human name when available, GitHub login, and account age. - Get the login from `gh issue view` / `gh pr view` (`author.login`), then fetch profile metadata once with `gh api users/ --jq '{login,name,created_at,type}'`. - Report account age as created date plus rough age, for example `Opened by Jane Doe (@jane, account created 2021-04-03, ~5y old)`. -- Also show recent GitHub activity when it informs maintainer risk: OpenClaw PRs, issues, and commits in the last 12 months; for linked issue-fixing PRs, include both the PR author and issue opener when they differ. +- Always show recent activity in two lanes: OpenClaw-local PRs, issues, and commits in the last 12 months; and general public GitHub activity over the same window. For linked issue-fixing PRs, include both the PR author and issue opener when they differ. - Prefer the bundled helper for activity lookups: ```bash @@ -37,7 +37,8 @@ gitcrawl cluster-detail openclaw/openclaw --id --member-limit 20 -- .agents/skills/openclaw-pr-maintainer/scripts/github-activity.sh --global ``` -- The helper reports repo-local activity first and can fetch public GitHub contribution totals for the same window with `--global`. +- The helper reports repo-local activity first and can fetch public GitHub contribution totals for the same window with `--global`; run the global form by default for review/triage identity summaries. +- If the global contribution graph reports zero or looks inconsistent with visible public activity, sanity-check with `gh api users/`, `gh api 'users//events/public?per_page=100'`, and recent public repo commits before calling the account inactive. - The helper is intentionally cache-friendly for gitcrawl-backed `gh`: it rounds repo-local windows to the UTC day, rounds global contribution windows to the UTC hour, and counts PRs/issues from one paginated issues response before fetching commits separately. Prefer reusing the helper instead of hand-rolling several `gh api` loops. - Report activity compactly, for example `OpenClaw last 12mo: 4 PRs, 2 issues, 11 commits; GitHub public last 12mo: 86 commits, 9 PRs, 3 issues, 12 reviews`. - If `name` is empty, use the login only. If profile lookup is rate-limited or unavailable, say `account age unknown` rather than omitting the opener.