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

Comment back on pull request when it's closed/merged #43

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

lkysow
Copy link
Collaborator

@lkysow lkysow commented Jun 21, 2017

Merge #42 first.

  • return locks from unlock/unlockbypull calls
  • create DeletePlansByPull and DeletePlan methods to clean up plans on apply/pull closed/errors
  • delete locks and plans on pull closed
  • comment back on pull

Comment for a single env:

Locks and plans deleted for the projects and environments modified in this pull request:

  • path: lkysow/atlantis-terraform-test/. environment: staging

Comment for multiple envs:

Locks and plans deleted for the projects and environments modified in this pull request:

  • path: lkysow/atlantis-terraform-test/. environments: production, staging

Fixes #31

Changes

  • for locking ,Unlock and UnlockByPull now return what was unlocked
  • new functions to delete plans
  • new pull_closed_executor that handles dealing with the closed pull

List() ([]models.ProjectLock, error)
UnlockByPull(repoFullName string, pullNum int) error
UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

new methods

plan/backend.go Outdated
@@ -7,6 +7,8 @@ import (
type Backend interface {
SavePlan(path string, project models.Project, env string, pullNum int) error
CopyPlans(dstRepoPath string, repoFullName string, env string, pullNum int) ([]Plan, error)
DeletePlan(project models.Project, env string, pullNum int) error
DeletePlansByPull(repoFullName string, pullNum int) error
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

new functions here for cleaning up plans. I still need to delete the plans on apply though

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.

Comment back on pull request when it's closed/merged which locks have been deleted
1 participant