Slackbot
11/08/2023, 4:06 PMChastity Blackwell
11/08/2023, 4:30 PMChastity Blackwell
11/08/2023, 4:30 PMLaurens Vets
11/08/2023, 5:04 PMATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY=trueLaurens Vets
11/08/2023, 5:06 PMmain
• Require a pull request before merging
• Required Approvals: 1
• Require review from Code Owners
• Status checks that are required: atlantis/plan, atlantis apply
In atlantis, we’ve set apply_requirements: [mergeable, undiverged]Laurens Vets
11/08/2023, 5:07 PMChastity Blackwell
11/08/2023, 7:03 PMLaurens Vets
11/08/2023, 7:06 PMxxx workspace: default
Apply Failed: Pull request must be mergeable before running apply.Laurens Vets
11/08/2023, 7:07 PM"mergeable": true,Laurens Vets
11/08/2023, 7:07 PMChastity Blackwell
11/08/2023, 8:16 PMChastity Blackwell
11/08/2023, 8:17 PMATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY set to true in your configs?Chastity Blackwell
11/08/2023, 8:17 PMLaurens Vets
11/08/2023, 8:23 PMChastity Blackwell
11/08/2023, 8:26 PMChastity Blackwell
11/08/2023, 8:27 PMLaurens Vets
11/08/2023, 8:32 PMLaurens Vets
11/08/2023, 8:32 PMStas Ostrovskyi
11/09/2023, 10:37 AMATLANTIS_GH_ALLOW_MERGEABLE_BYPASS_APPLY only works with branch protection API which is different from ruleset one.
GitHub's API GetMergeableState() disregards who called it and always returns blocked in case like this with rulesets. There is no other API which can tell whether a PR can be merged by specific user, so nothing much can be done in Atlantis unfortunately. GitHub people are "aware of the problem"
Long story short you still need to keep a version of branch protection in the repos that work with atlantis unfortunately.Chastity Blackwell
11/09/2023, 2:10 PMoponomarov-tu
11/14/2023, 11:35 AM