Skip to content

Add local_reference (Merge Request ID) to commit template

Zadkiel requested to merge zadkiel/gitlab:zadkiel-master-patch-48442 into master

What does this MR do and why?

This PR adds a %{local_reference} Commit message templates variable that resolves to a simple merge request ID like !123. Currently, %{reference} resolves to the full MR reference like path/to/group/project!123.

I'd like to reference IDs in the commit name like GitHub does by default with squash merges (commit message (#PR-ID)).

Solves #199823

TODO

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zadkiel

Merge request reports