Skip to content

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

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

shumkov merged 1 commit into
v4.3-devfrom
chore/pr-hygiene-green-build-v4.3-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) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: 2762da20-05c5-4c00-97c3-6fe8b66ad054

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 github-actions Bot added this to the v4.3.0 milestone Sep 17, 2026
@shumkov
shumkov merged commit d6e4f30 into v4.3-dev Sep 17, 2026
18 checks passed
@shumkov
shumkov deleted the chore/pr-hygiene-green-build-v4.3-dev branch September 17, 2026 08:09
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