Skip to content

Forbid approving PRs with labels blocking approval #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 19, 2025
Merged

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Jul 19, 2025

Closes: #288

@Kobzol Kobzol changed the title Forbit approving PRs with labels blocking approval Forbid approving PRs with labels blocking approval Jul 19, 2025
@Kobzol Kobzol mentioned this pull request Jul 19, 2025
3 tasks
@Kobzol Kobzol enabled auto-merge July 19, 2025 09:25
@Kobzol Kobzol added this pull request to the merge queue Jul 19, 2025
Merged via the queue into main with commit 30bdd2f Jul 19, 2025
2 checks passed
@Kobzol Kobzol deleted the pr-approval-labels branch July 19, 2025 09:34

# Labels that will block approval when present on a PR
# (Optional)
labels_blocking_approval = ["final-comment-period", "proposed-final-comment-period"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add "needs-fcp" here, or is that a label we expect to keep even after FCP passed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is just an example config, this hasn't been enabled on rust-lang/rust yet :) I'll send a PR shortly, we can discuss it there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw seems like needs-fcp indeed isn't removed after the FCP finishes (rust-lang/rust#79278), so maybe we shouldn't mark it as blocking.

jieyouxu added a commit to jieyouxu/rust that referenced this pull request Jul 21, 2025
…-obk

Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC `@RalfJung`

r? `@oli-obk`
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Jul 21, 2025
…-obk

Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC ``@RalfJung``

r? ``@oli-obk``
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Jul 21, 2025
…-obk

Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC ```@RalfJung```

r? ```@oli-obk```
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Jul 21, 2025
…-obk

Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC ````@RalfJung````

r? ````@oli-obk````
rust-timer added a commit to rust-lang/rust that referenced this pull request Jul 21, 2025
Rollup merge of #144176 - Kobzol:bors-labels-blocking, r=oli-obk

Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC ````@RalfJung````

r? ````@oli-obk````
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jul 22, 2025
Add approval blocking labels for new bors

If a PR contains these labels, new bors won't let anyone approve it. We don't merge PRs using new bors yet, ofc, but I wanted to prepare this so that I don't forget about it.

This was proposed here: [#t-lang/meetings > Triage meeting 2025-07-23 @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/410673-t-lang.2Fmeetings/topic/Triage.20meeting.202025-07-23/near/529407150) and implemented [here](rust-lang/bors#367).

CC ````@RalfJung````

r? ````@oli-obk````
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.

Enable sanity checks for PR approval
2 participants