Add link to assign related MR issues to MR author
We should add a link to the MR to assign the MR author to any issues they forgot to assign themselves to, if that's the workflow the organization uses.
- It would read "Assign yourself to these issues" if there were multiple.
- It would only show if the signed in user is the author of the MR
- It would only show if there is at least 1 issue in that list that they are not already assigned to and they have the permissions required to set the assignee
- It could potentially reuse the
Issues::BulkUpdateService
- It would show a flash message after the assignment is successful
Original proposal
Sometimes we forget to assign ourselves when we start to work on an issue, and this can lead to having multiple people working on the same issue.
The solution I propose is to auto-assign an issue to its corresponding MR's creator (only if the issue is not yet assigned).
For instance:
- I'm starting to work on
#123
but I forget to assign myself to it - I submit
!456
that addresses#123
:- our system detects that
!456
addresses#123
thanks to the branch name, e.g.123-weird-bug
- I'm automatically assigned to
#123
- our system detects that
/cc @JobV @markpundsack