forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to autoplan, automerge is a feature whereby Atlantis will merge a PR/MR once all plans have successfully been applied. This addresses issue runatlantis#186.
- Loading branch information
Brenden Matthews
committed
Jan 17, 2019
1 parent
56b09b6
commit 88909dd
Showing
57 changed files
with
1,377 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ module.exports = { | |
'locking', | ||
'autoplanning', | ||
'checkout-strategy', | ||
'automerging', | ||
'security' | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Automerging | ||
Atlantis can be configured to automatically merge a PR after all plans have | ||
been successfully applied. Automerging can be enabled either by passing the | ||
`--automerge` flag to the `atlantis server` command, or it can be specified | ||
using `atlantis.yaml` at the top level: | ||
|
||
```yaml | ||
version: 2 | ||
automerge: true | ||
projects: | ||
- dir: project1 | ||
autoplan: | ||
when_modified: ["../modules/**/*.tf", "*.tf*"] | ||
``` | ||
The automerge setting is global, and if specified on the command line it will | ||
override any `atlantis.yaml` settings. You may need to adjust the permissions | ||
for your git provider to enable merging via the API. | ||
|
||
When automerge is enabled, the changes will only be merged if all plan and | ||
apply stages have succeeded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
server/events/mocks/matchers/ptr_to_go_gitlab_mergerequest.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.