Skip to content

Add `/assign me` alias support for assigning issuables to oneself

Mehdi Lahmam requested to merge mehlah/gitlab-ce:add-assign-me-alias into master

What does this MR do?

Currently, when a user wants to assign an issue/MR to himself, he needs to type his full username or select it from the suggested ones in the dropdown list.

This commits suggest a faster solution which is typing /assign me

Are there points in the code the reviewer needs to double check?

I hesitated about where to introduce this change. I submitted the simplest solution supporting /assign me or /unassign me, but we could also support more complex commands like assign me @jdoe, or even @me as a default "alias" to the current user in user references parser.

I'm not yet that familiar with GitLab code base to have a better opinion on this.

Why was this MR needed?

It's a suggested enhancement for /assign command

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#35304 (closed)

Merge request reports

Loading