Skip to content

ci: add workflow to block merging PRs with "status: blocked" label - #5955

Merged
mark-wiemer merged 1 commit into
mochajs:mainfrom
mostafaNazari702:fix/5924-blocked-pr-check
Jun 19, 2026
Merged

ci: add workflow to block merging PRs with "status: blocked" label#5955
mark-wiemer merged 1 commit into
mochajs:mainfrom
mostafaNazari702:fix/5924-blocked-pr-check

Conversation

@mostafaNazari702

Copy link
Copy Markdown
Contributor

PR Checklist

Overview

A small "Blocked PR Check" workflow that just fails when a PR has the status: blocked label. It runs on normal PR events and when labels get added or removed, so it re-checks whenever someone toggles that state. to actually stop the kind of accidental merges that came up in #5409/#5881, it also needs to be set as a required status check in branch protection i think, that part ain’t handled in the repo itself it has to be configured at the admin level

Comment thread .github/workflows/blocked-pr.yml Outdated
@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for author waiting on response from OP or other posters - more information needed label May 16, 2026
A “Blocked PR Check” workflow that runs on pull request events (including label changes) and fail whenever a PR has the `status: blocked` label. blocked pull requests can not accidentally pass required checks and get manually merged in anyway.
@mostafaNazari702
mostafaNazari702 force-pushed the fix/5924-blocked-pr-check branch from 053f650 to 3b80cb6 Compare May 16, 2026 15:27
@JoshuaKGoldberg JoshuaKGoldberg added status: needs review a maintainer should (re-)review this pull request and removed status: waiting for author waiting on response from OP or other posters - more information needed labels May 18, 2026
@mark-wiemer mark-wiemer self-assigned this Jun 19, 2026
@mark-wiemer
mark-wiemer merged commit 722edec into mochajs:main Jun 19, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Mocha Jun 19, 2026
@mostafaNazari702
mostafaNazari702 deleted the fix/5924-blocked-pr-check branch August 10, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs review a maintainer should (re-)review this pull request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🛠️ Repo: Prevent manual merging of PRs labelled "blocked"

3 participants