Skip to content

ci: re-pin PR Hygiene to require a green build before asking a human - #1483

Merged
shumkov merged 1 commit into
v1.8-devfrom
chore/pr-hygiene-green-build-v1.8-dev
Sep 17, 2026
Merged

shumkov merged 1 commit into
v1.8-devfrom
chore/pr-hygiene-green-build-v1.8-dev

Conversation

@shumkov

@shumkov shumkov commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Re-pins the shared review workflow onto dashpay/stale_prs_are_bad#32, #33 and #34.

A green build before a human is asked. Reviewers are requested once the build is green; a build that goes red afterwards does not take it back, so a flaky test cannot withdraw a review request already sent or drop its author out of a review slot. A new push starts the cycle again, as it already does for the bots and the attestation.

Only the newest run of each check counts — re-running a check adds a run beside the old one rather than replacing it, so a head keeps every failed attempt for ever and GitHub's own rollup reads FAILURE on pull requests whose every check has since passed. Cancelled is not a failure. A repository with no checks is green.

A second schedule, three times an hour, reconciles only the pull requests already recorded as waiting on a build — because a build turning green raises no event this controller subscribes to. It costs two requests when nothing is waiting, and does nothing at all where this controller does not write.

One less thing to read. The state comment asked for the self-review attestation three times over; it asks once now. Naming a commit explicitly still works, it is simply no longer advertised.

No change to who may approve, or to the five-slot queue.

🤖 Generated with Claude Code

A pull request now has to be green before reviewers are requested, and a build
that goes red afterwards does not take that back. A second schedule looks again
at the pull requests waiting on a build, because a build turning green raises
no event this controller hears.

dashpay/stale_prs_are_bad#32, #33 and #34 landed as 176b4072cb93c69a19c68ebdda2080b5ec12bea3.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@shumkov
shumkov requested a review from lklimek as a code owner September 17, 2026 08:07
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 243fda3c-b3e3-441f-8d16-d61bc3b411aa

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

PR Hygiene

State: waiting-bots · commit dc1b56e1ff94321e2c8bb844f9b301f1074ca2e5

  • thepastaclaw has not reported for the current head

Self-review is an author attestation that you have read the diff:
/self-reviewed — covers everything pushed so far; post it again after a new push.
Post it after this report appears for commit dc1b56e1ff94321e2c8bb844f9b301f1074ca2e5, or name the commit explicitly with /self-reviewed dc1b56e1ff94321e2c8bb844f9b301f1074ca2e5.

This report does not bypass CI or repository protection rules.

@shumkov
shumkov merged commit 4fab903 into v1.8-dev Sep 17, 2026
23 checks passed
@shumkov
shumkov deleted the chore/pr-hygiene-green-build-v1.8-dev branch September 17, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant