Close issues async after merging MR
What does this MR do and why?
When closing issues errors out, it can stop the execution of PostMergeService
which can result to other operations not being executed.
To ensure that we still run the rest of logic in PostMergeService
when that happens, we close issues asynchronously.
This is behind the async_mr_close_issue
feature flag as a new worker is being introduced.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable the
async_mr_close_issue
feature flag:Feature.enable(:async_mr_close_issue)
. - Create an issue.
- Create a MR that references that issue with
Closes
prefix (e.g.Closes #1
). - Merge the MR.
- The referenced issue should be closed.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Patrick Bajao