Support the `%{reviewed_by}` placeholder in Merge commit template
Release notes
The Merge commit template now supports the %{reviewed_by}
placeholder that will add a Reviewed-by:
Git trailer for each reviewers of a merge request.
Problem to solve
The Contributor Success team would like to better recognize participants to a change (in that case a commit) to understand how the GitLab community collaborate on merge requests.
Proposal
The Merge commit template could support the %{reviewed_by}
placeholder. For each reviewers of a merge request (i.e. people that submitted a review), the Merge commit message will include a Reviewed-by:
Git trailer.
Reviews are currently stored in the reviews
database table, and a merge request has a reviews
association. We could add a new has_many :reviewed_by_users, -> { distinct }, through: :reviews, source: :author
to streamline the gathering of historical unique reviewers of a merge request.
Intended users
Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/
- Cameron (Compliance Manager)
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Priyanka (Platform Engineer)
- Sidney (Systems Administrator)
- Sam (Security Analyst)
- Rachel (Release Manager)
- Alex (Security Operations Engineer)
- Allison (Application Ops)