Force add a PR to the Merge Queue with failing required checks #8145
Replies: 4 comments 2 replies
-
|
Agreed. Would also be convenient to have a way to fast track PRs into the merge queue without waiting for them to finish building on the PR (so while the PR checks are 'yellow'). This workflow used to work without merge queue where any administrator could have the permission to bypass checks. Allowing bypassing checks when you have a merge queue based workflow works poorly, because then the PR is not even merged via the merge queue, which means the proper merge checks are also skipped. This essentially means that we now by having enabled merge queue on our repositories have lost one way to safely fast-track pull requests into production (by skipping essentially one of two check runs). I so far haven't been able to come up with any workaround that makes this practical in the current system. |
Beta Was this translation helpful? Give feedback.
-
|
Here is an even worse case. I have no checks failing, but it's a global refactor affecting several apps in the monorepo, so I need an approve from the whole country. I have the admin privileges to bypass and merge this directly, but that would skip some conditional steps (like deploying internal docs) that only run during a merge queue event. your UX is annoying, github |
Beta Was this translation helpful? Give feedback.
-
|
Ok |
Beta Was this translation helpful? Give feedback.
-
|
I came up with a similar solution to stianjensen, but without the need to modify every action: It works by adding a commit status named 'check-all-general-jobs-passed' to the PR commit. Our repository has 'check-all-general-jobs-passed' as our only required status (it's normally a job that has a 'needs' dependency on every other job). Adding a commit status also satisfies the required status branch protection check, so adding this label will allow an already-approved PR to immediately enter the merge queue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to add a PR to the Merge Queue forcefully even when there are still failing required checks? Sometimes even when a required check fails, we still want to enqueue a PR because the failure is deemed acceptable. Instead of admin merging the PR, we still want it to go through the Merge Queue because there are "fundamental checks" that run in the MQ and we want those to pass!
Today, we allow certain people to admin merge PRs but they skip the MQ, which can lead to compilation errors on the main branch.
Beta Was this translation helpful? Give feedback.
All reactions