mirror of
https://github.com/readest/readest.git
synced 2026-12-01 13:36:39 +00:00
Answers CodeRabbit's review of #7709: - The PR commits API lists at most 250 commits. When the PR has more, the gate now fails and asks the contributor to squash, instead of passing unchecked commits. - The CI re-run now happens before the gate comment is deleted. A failed re-run leaves the comment, so the next event retries it. - The three `gate` jobs get distinct check names: "PR gate" (pull_request_target), "CI gate" and "CodeQL gate". "PR gate" is the one to require. It runs main's copy of the workflow and script, so a PR can't edit it away the way it can edit the CI gates. Verified: node --test .github/scripts/pr-gate.test.mjs passes 7 tests. The new 250-cap test failed before the fix (truncated was undefined), along with the two tests that now assert truncated: false. A check-only dry run on #7687 (13 commits), #7701 and #7708 gives the same verdicts as before. Biome is clean and the workflow YAML parses. Co-authored-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pr-gate.mjs | ||
| pr-gate.test.mjs | ||
| retry.sh | ||