-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How can you require an apply before merge? #1316
Comments
What you need to do is leverage both the Atlantis Apply Requirements and the Github checks (like you are doing).
This, in combination with the github check you've implemented already should unblock you @kenske. The workflow should be look like this:
|
@rawlbot thanks for the suggestion, but I don't want to remove the |
@kenske We have it like that..
|
@ingwarsw sounds great except that if we require the |
@ingwarsw If you have |
if atlantis:apply is required for merge, I can't have |
@grimm26 I'm running into the same issue. I'm considering setting up some sort of PR bot with its own status check. The bot would check for a plan and then require atlantis apply before setting its own check to |
@grimm26 @kenske I fixed my comment.. we are checking Other than that it works ok and is secure.. |
I have a setup working now with requiring atlantis/plan and atlantis/apply on github with |
@kenske , you've looked into On our end, we force Until today I've only found one issue:
|
0.17.5 kinda fixes this, but |
The I think the only possible solution is to allow people to choose workflow where atlantis applies changes on merge rather than requiring |
Add atlantis/apply as a required check Set https://www.runatlantis.io/docs/server-configuration.html#gh-allow-mergeable-bypass-apply flag |
Our whole Atlantis workflow is working great, except for when we get new users, and they always forget to comment
atlantis apply
before they merge. How can we require users to apply before merging?We tried requiring
atlantis:apply
as a github status check, but then that means atlantis won't run because the branch is not mergeable.Edit: removing
mergeable
inapply_requirements
is not an options because we run the risk of someone trying to apply their changes on a branch that's not up to date with master.The text was updated successfully, but these errors were encountered: