runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.52k stars 1.02k forks source link

Can't remove plan when repo_locks mode set to "on_apply" #4622

Open TZdybel opened 1 month ago

TZdybel commented 1 month ago

Community Note


Overview of the Issue

Recently we've set repo_locks mode to "on_apply" as it will make it easier for us to work simultaneously. The problem is that after this change we can't remove one plan that we don't want to apply from the whole set of plans, where others are good to go.

Reproduction Steps

Set repo_locks.mode to "on_apply" and try to remove plan by link in the comment.

Environment details

Atlantis server-side config file:

repos:
  - id: /.*/
    branch: /master/
    apply_requirements: [approved, undiverged]
    import_requirements: [approved, undiverged]
    plan_requirements: [undiverged]
    repo_locks:
      mode: on_apply

Additional Context

image image