`/tag` quick action on Commit comments
In https://gitlab.com/gitlab-org/gitlab-ce/issues/22363 it was proposed to have a /tag slash command on merge requests. This is a good idea, but a few issues might arise due to uncertainty on when the command is actually executed. (https://gitlab.com/gitlab-org/gitlab-ce/issues/22363#note_69828712)
This issue shouldn't be interpreted as a counter proposal, but I do feel this is a smaller step allowing for an iteration later.
Proposal
- Add a quick action (slash command) that can be used in the notes of a commit discussion only
For example,
- Open https://gitlab.com/gitlab-org/gitlab-ce/commit/627eba55d63daf7e725edc5425debfc3890f2f9f
- Scroll to the comments at the bottom
- Type
/tag v10.9.0and optionally add a comment too - Upon posting, the commit gets tagged to the commit id of the page it was posted from
A future enhancement would be to support patterns like /tag v10.9.x which would tag the commit as the next patch release.
Other Notes
- quick actions autocompletion can be enabled in
app/views/shared/notes/_form.html.haml
Links / references
Edited by Jan Provaznik