Close issue when deployed to environment
I have setup Gitlab CI with a few basic tasks
- Make sure all tests succeed (and coverage requirement)
- Deploy staging server and test environment
- Deploy to production
I want issues to only be closed once the "Deploy to production" step passes. The closest I can come at this time is to only run the deploy step on the master branch, and only merge commits into the master branch through merge requests.
In this way, I can run the first two steps on the merge request branch, and then when I accept the merge request, I assume that the deploy step will not break.
It would be great if these issues were not closed until their commits are merged into the master branch and the build passes. The issue is that the boss gets a mail stating that issues have been resolved, and then he goes to the website to try the fix, but the fix isn't there yet.
Is this a feature worth implementing, or is it something we should just work around? The most obvious workaround being: See if the gitlab-ci badge says "Success" before trying the fix on the website.