Skip to content
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

Unable to Merge when GitHub Branch Protection Push Restrictions Enabled #98

Closed
BrianChristie opened this issue Mar 15, 2019 · 1 comment
Labels
enhancement Feature requests or new functionality

Comments

@BrianChristie
Copy link

BrianChristie commented Mar 15, 2019

Is there any current workarounds to use Bulldozer when Restrict who can push to matching branches is enabled on GitHub?

From looking at other projects, it appears it's currently impossible as GitHub does not provide a way to give push permission to the Bulldozer GitHub App directly, only user accounts or groups can be selected.

Some projects have worked around this by having a 'real' user account for the bot to use in this situation.

Thanks!

@bluekeyes
Copy link
Member

Internally, we recommend avoiding push restrictions for this reason. We use policy-bot to implement approval restrictions as a required status check, which solves most of the problems we'd otherwise use push restrictions to solve. But this isn't a great solution for everyone, as it requires running a second app and doesn't enforce exactly the same thing.

I don't know of any other workaround at the moment (and I'd really like GitHub to just allow bot users to exist in that restrictions list), but adding an option to configure an OAuth token to use for merges sounds like an acceptable feature until that day. For simplicity, we'd probably use that token for all merges if it is configured, rather than only using it if the repository has push restrictions.

@bluekeyes bluekeyes added the enhancement Feature requests or new functionality label Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or new functionality
Projects
None yet
Development

No branches or pull requests

2 participants