feat: add PR automation workflows and ball-tracking commands - #1715
Merged
Conversation
Add two scheduled GitHub Actions workflows and two rulesync commands to help triage open pull requests. - ci-failure-reminder.yml: daily workflow that mentions the author of each open, non-draft PR whose CI is failing, de-duplicated to one comment per failing commit (head SHA). - auto-close-stale-prs.yml: daily workflow that closes open PRs (including drafts) older than 30 days, after leaving an explanatory comment. - prs-awaiting-maintainer / prs-awaiting-author commands: list open PRs by whose court the ball is in. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- auto-close-stale-prs: measure staleness from updated_at instead of created_at so actively maintained PRs are not closed - auto-close-stale-prs: guard against null PR authors and isolate per-PR failures with try/catch - ci-failure-reminder: skip PRs without a resolvable author - both workflows: add a concurrency guard to prevent overlapping runs - commands: clarify that author_association comes from the REST comment/review payloads, not gh pr view --json, and treat PR content as untrusted data Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
@dyoshikawa Thank you! |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ci-failure-reminder.yml: a daily scheduled workflow (plus workflow_dispatch) that mentions the author of each open, non-draft PR whose CI is failing. De-duplicated to one comment per failing commit (head SHA) via a hidden marker, so authors are not pinged every day for the same failure. Bot authors are skipped.auto-close-stale-prs.yml: a daily scheduled workflow that closes open PRs (including drafts) older than 30 days, after leaving an explanatory comment inviting a reopen.prs-awaiting-maintainerandprs-awaiting-authorrulesync commands that list open PRs by whose court the ball is in (maintainer review/merge vs. author fixes).Both workflows use
actions/github-scriptand access the GitHub API from JS only, avoiding untrusted-input interpolation into shell per the repository GitHub Actions security guidance. Actions are pinned by SHA.Test plan
pnpm cicheckpasses (fmt, lint, typecheck, tests, cspell, secretlint)