mirror of
https://github.com/readest/readest.git
synced 2026-12-01 22:09:19 +00:00
PRs from authors who aren't owners, members or collaborators (bots exempt) must link an issue (closingIssuesReferences, i.e. "Fixes #N") and carry "Co-Authored-By: <agent> (<model>) <email>" in every non-merge commit. - pull-request.yml and codeql.yml get a `gate` job that every other job needs, so a failing PR skips the rest of CI. Push and schedule runs pass straight through. - pr-gate.yml (pull_request_target, base-branch checkout only, never the PR's code) adds `needs-issue` / `needs-attribution` labels and one comment saying what to fix. The PR stays open. Once it passes, the labels and comment are removed and the CI runs the gate skipped are re-run, since linking an issue doesn't trigger CI. - CONTRIBUTING.md states the linked-issue rule. Verified: - node --test .github/scripts/pr-gate.test.mjs: 6 pass. It failed before pr-gate.mjs existed (module not found). - Check-only dry run against the 8 latest outside PRs (#7683-#7703): all fail, 5 missing a linked issue and all 8 with unattributed commits, matching their closingIssuesReferences and commit messages. #7708 (member) and a push event pass. - The workflow YAML parses; actionlint isn't installed here. - Not run: the --report path (labels, comment, re-run) against a live PR. The first outside PR after merge exercises it. Co-authored-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pr-gate.mjs | ||
| pr-gate.test.mjs | ||
| retry.sh | ||