Closed ejholmes closed 7 years ago
I think that's exactly the right behavior. It even makes sense with production too.
What happens when someone forgets to re-deploy master or unlock the environment? Any ideas on safe guards there? Seems especially important in prod, though maybe this is very rare in prod, so won't matter.
If we got notified when auto deploys failed because the environment was locked, I think that'd be enough. That already happens to us now sometimes, when we lock prod on an app.
In staging, I can think of several (bad) ideas; they all sound like too much work and too specific to our workflows.
Ok awesome, I'll try to tackle this sometime soon. Should be pretty straight forward.
I think some behavior like this would be pretty slick. Let's say you configure the default branch for "staging" as
master
.If I deploy a topic branch to staging (anything that's not master), then it should automatically lock (or send me a DM with some message buttons asking me if I want to lock it).
When I'm done, I can just deploy the master branch again, and SlashDeploy sends me a DM asking me if I want to unlock it.
I think something along the lines of this can help ensure that people lock when they need to, and don't forget to unlock.