This message was deleted.
# atlantis-community
s
This message was deleted.
e
perhaps because code is tied specifically to
g.client.Repositories.GetBranchProtection
https://github.com/runatlantis/atlantis/blob/6ff0e2f90e5aa70fc76d8498eeec745306697a7b/server/events/vcs/github_client.go#L417
👍 1
r
Thanks for looking through the code. If you have a better way to do this, it would be fantastic to get both branch protection and GitHub rules to work. I'm currently using the branch protection and the bypass flag https://www.runatlantis.io/docs/server-configuration.html#gh-allow-mergeable-bypass-apply
e
thanks for the links, perhaps I can allow github app to bypass rules as mentioned in comment https://github.com/runatlantis/atlantis/issues/3097#issuecomment-1519074413
s
As mentioned above, code behind
--gh-allow-mergeable-bypass-apply
is tightly coupled with branch protection API. On other hand, GitHub lacks an API to check whether user or an app are allowed to merge PR with regards to bypass list which makes it currently impossible to require
atlantis/apply
via rulesets 😞
😢 3
Here is more info in GitHub discussion for repository rules - https://github.com/orgs/community/discussions/61107#discussioncomment-7000915
👍 3