Extract common logic of issue and merge request resources
What does this MR do and why?
Issue and merge request resources share some functionality between them. This change DRYs up the code a bit.
Closes: #375561 (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.