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

Add undiverged apply requirement #1587

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Conversation

pcalley
Copy link
Contributor

@pcalley pcalley commented May 18, 2021

This PR adds an undiverged Apply requirement which prevents applies if there are any changes on the base branch since the most recent plan. The apply requirement only effects repos/projects with the 'merge' checkout strategy and prevents the situation where an 'apply' is run on Atlantis but not all changes from remote/master had been pulled locally to Atlantis. This is the same situation where we already warn users on the 'plan' but additionally prevents the apply.

Example workflow:

Screen Shot 2021-05-20 at 2 27 55 PM

* initial commit for undiverge apply req

* Update documentation

* Fix existing unit tests

* HasDiverged unit test

* project command runner unit test

* Global config tests cases

* update parser unit tests

* Update project_test unit tests

* Fix linting

* fix test case with logging output

* add space on readme markdown

* Remove unused variable

* remove deprecated flag option

* Use global args struct instead of passing in args
@pcalley pcalley requested a review from a team as a code owner May 18, 2021 21:48
@msarvar
Copy link
Contributor

msarvar commented Jun 3, 2021

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants