Skip to content

Add co_authored_by placeholder to suggestions template

What does this MR do and why?

When a user applies multiple suggestions for different users collected into a single batch, the authors of the suggestions are not credited. The user is set as the Author and the Committer of the commit:

Author: User A <>
Committer: User A <>

This MR introduces the ability to configure Co-authored-by trailer for suggestion commits by specifying %{co_authored_by}. The configuration is similar to https://docs.gitlab.com/ee/user/project/merge_requests/commit_templates.html#supported-variables-in-commit-templates.

Related issues:

Merge request reports