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

Log warning when atlantis.yml is used as config #816

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Log warning when atlantis.yml is used as config #816

merged 1 commit into from
Oct 30, 2019

Conversation

mdcurran
Copy link

@mdcurran mdcurran commented Oct 26, 2019

Log a warning whenever there is an atlantis.yml file in the repository directory. The implementation is a bit naive since it will check for this invalid file extension each time Atlantis builds plan contexts, but I found it to be the easiest implementation without refactoring a bunch of functions.

I'm not too hot about the InvalidAtlantisYAMLFileExtension constant. It works well for reducing code duplication, but not sure having it be a global variable is a good thing. Thoughts would be welcome on this!

Addresses the discussion in #755

@codecov
Copy link

codecov bot commented Oct 26, 2019

Codecov Report

Merging #816 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #816      +/-   ##
==========================================
+ Coverage   71.81%   71.83%   +0.01%     
==========================================
  Files          65       65              
  Lines        5209     5190      -19     
==========================================
- Hits         3741     3728      -13     
+ Misses       1183     1179       -4     
+ Partials      285      283       -2
Impacted Files Coverage Δ
server/events/yaml/parser_validator.go 96.8% <100%> (+0.14%) ⬆️
server/events/project_command_builder.go 83.01% <0%> (+0.89%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d5e25c...c2934b4. Read the comment docs.

server/events/project_command_builder.go Outdated Show resolved Hide resolved
@mdcurran mdcurran requested a review from lkysow October 28, 2019 20:02
Copy link
Member

@lkysow lkysow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Please squash your commits into one.

@lkysow lkysow added the waiting-on-response Waiting for a response from the user label Oct 29, 2019
@mdcurran
Copy link
Author

Commits have been squashed!

@lkysow lkysow removed the waiting-on-response Waiting for a response from the user label Oct 30, 2019
@lkysow lkysow merged commit 649a124 into runatlantis:master Oct 30, 2019
@lkysow
Copy link
Member

lkysow commented Oct 30, 2019

Nice work! 🎉

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