We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d82fb commit 4bdc731Copy full SHA for 4bdc731
pkg/digger/digger.go
@@ -261,7 +261,12 @@ func (d DiggerExecutor) Apply(prNumber int) {
261
applyOutput := cleanupTerraformApply(true, err, stdout, stderr)
262
comment := "Apply for **" + d.LockId() + "**\n" + applyOutput
263
d.prManager.PublishComment(prNumber, comment)
264
- d.lock.Unlock(d.LockId(), prNumber)
+ if err == nil {
265
+ _, err := d.lock.Unlock(d.LockId(), prNumber)
266
+ fmt.Errorf("error unlocking project: %v", err)
267
+ } else {
268
+ d.prManager.PublishComment(prNumber, "Error during applying. Project lock will persist")
269
+ }
270
}
271
272
0 commit comments