Open dbaboy opened 1 year ago
As I understand, this needs to happen in Atlantis events. So, when a PR is declined and the Webhook on Declined is triggered, Atlantis must then fire a 'atlantis unlock'.
humm, looks like a nice thing.
let me check if I can do anything about it.
actually, the atlantis already do it:
{"level":"info","ts":"2023-10-13T15:10:22.235Z","caller":"events/events_controller.go:371","msg":"identified event as type \"closed\"","json":{}}
{"level":"info","ts":"2023-10-13T15:10:22.236Z","caller":"events/instrumented_pull_closed_executor.go:45","msg":"Initiating cleanup of pull data.","json":{"repository":"***","pull-num":"5"}}
{"level":"info","ts":"2023-10-13T15:10:22.236Z","caller":"events/working_dir.go:385","msg":"Deleting repo pull directory: "****","json":{}}
{"level":"info","ts":"2023-10-13T15:10:22.240Z","caller":"events/events_controller.go:478","msg":"deleted locks and workspace for repo ***, pull 5","json":{}}
Is it not working for you?
Discussed in https://github.com/runatlantis/atlantis/discussions/3757