Ovverride the PR merge rule #513
Unanswered
PSinha1202
asked this question in
Q&A
Replies: 2 comments
-
I do not think there are any APIs to bypass Codeowner approval like this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks @joshmgross for the input. Can you suggest or know if there are some other alternate options to the above scenario? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
Need some help or guidance in case my ask is possible.
We have a CODEOWNER file which has fileName and codeOwner Team name mapping. So when a PR gets created it pull all codeOwner teams based on files changed and the mapping. But based on default rule (correct me i am wrong) PR is not allowed to merge unless all reviewers "Approve" PR, which makes total sense.
But say sometime, changes are so small, that we might not need all approvals. So i was wondering if there is a way to
enable merge Button
in PR the moment we know two of codeowner has already approved it. We already have the rule setup Require approvals -- min to 1, but i think after CODEOWNER approvals is overriding it, since now it needs approval from all codeowner.I tried few things:
ex: writing a script under .github/workflow/xyz.yml
Which basically fetches the
Question:
I am wondering if there is any API by which we can enable the PR to be merged? (
enable merge Button
)If No API, then what other options we have to follow along to relax the rules of PR merge.
Any help or guidance would be much appreciated.
Regards
Prasenjit
Beta Was this translation helpful? Give feedback.
All reactions