Environment auto-close on branch deletion should be configurable behavior
Jobs configured as 'manual' happen automatically.
Steps to reproduce
Set up an environment with a stop task. Delete the branch that created it.
What is the current bug behavior?
It's known and considered a feature that deleting a branch automatically triggers related environments to stop. However, I found this surprising and counter to the intent expressed in my configuration. Setting a job to 'manual' should leave me with confidence that it won't run unless I manually tell it to.
What is the expected correct behavior?
There really should be a distinct setting to run 'automatically on deletion', just as there are particular settings for on_success and on_failure.
I suggest adding a value of 'on_deletion' or similar for the 'when' setting.