-
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
Updating message when project is locked. #325
Updating message when project is locked. #325
Conversation
847d839
to
9b5a967
Compare
Codecov Report
@@ Coverage Diff @@
## master #325 +/- ##
==========================================
+ Coverage 70.56% 70.57% +<.01%
==========================================
Files 61 61
Lines 3642 3643 +1
==========================================
+ Hits 2570 2571 +1
Misses 893 893
Partials 179 179
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I agree this should be a better message. I've suggested another change to make it even more explicit.
server/events/project_locker.go
Outdated
@@ -63,7 +63,7 @@ func (p *DefaultProjectLocker) TryLock(log *logging.SimpleLogger, pull models.Pu | |||
} | |||
if !lockAttempt.LockAcquired && lockAttempt.CurrLock.Pull.Num != pull.Num { | |||
failureMsg := fmt.Sprintf( | |||
"This project is currently locked by #%d. The locking plan must be applied or discarded before future plans can execute.", | |||
"This project is currently locked by #%d. The locking plan must be applied or discarded before future plans can execute. Comment with `atlantis plan` on this PR, once the lock is released.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to change this so it looks like:
Unable to run plan
. This project is currently locked by an unapplied plan from pull #2. To continue, delete the lock from #2 or apply that plan and merge the pull request.
Once the lock is released, comment atlantis plan
here to re-plan.
The full string will be:
fmt.Sprintf("**Unable to run `plan`**. This project is currently locked by an unapplied plan from pull #%d. To continue, delete the lock from #%d or apply that plan and merge the pull request.\n\nOnce the lock is released, comment `atlantis plan` here to re-plan.", lockAttempt.CurrLock.Pull.Num, lockAttempt.CurrLock.Pull.Num)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, updated!
2a6a74e
to
7010971
Compare
7010971
to
189b059
Compare
Just updating the message atlantis spits out when the project is locked. Once the locking plan is released, atlantis doesn't auto-run
plan
on subsequent PR's. This message makes it clear to users that they should manually run plan.