Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 6

User level Branch Protection rules

We have certain branches which are protected for merge and require pull request reviews before merge.

Now we want only one user(non-admin) user to enable the merges without review, as this will be part of our  forward merging automation process.

How can I achieve this?

5 Replies
Moderator
Message 2 of 6

Re: User level Branch Protection rules

Hi @pavishkarnik,

 

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

 

As you’ll notice, your Topic is now in the How to use Git and GitHub board.

As for your question, I'm wondering if branch restrictions might help your use case. That said, it sounds like you might be looking for slightly more granular permissions than that. If that's the case, it's not currently possible, but I can definitely see the value. Let me know, and I'll be sure to share your feedback with the appropriate teams for consideration in the future.

Cheers!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 3 of 6

Re: User level Branch Protection rules

Cheers nadiajoyce, I think that will help a lot. Cause we are automating our forward merging process and do not want to share admin access to this user, as the token info will be in scripts. 

Highlighted
Copilot Lvl 3
Message 4 of 6

Re: User level Branch Protection rules

I forgot to mention that branch restrictions is not addressing the whole use case.

Moderator
Message 5 of 6

Re: User level Branch Protection rules

Okay, great. I will share your specific use case with the appropriate teams for consideration in the future. Thank you for following up!

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Ground Controller Lvl 1
Message 6 of 6

Re: User level Branch Protection rules

We also have a problem with this. We want to require pr reviews before merging, but we have 2 users (bots) that need to be able to push to a protected branch without review. Example use cases:

 

  1. i18n updates from our translation software automatically update locale files and don't need reviews.
  2. Dependabot automatically merging security patches / updates to dev dependencies