2020-01-13 12:08:04 +00:00
|
|
|
- form = local_assigns.fetch(:form)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%b= s_('ProjectSettings|Merge suggestions')
|
|
|
|
%p.text-secondary
|
2022-01-05 15:13:51 +00:00
|
|
|
= s_('ProjectSettings|The commit message used when applying merge request suggestions.')
|
2020-01-13 12:08:04 +00:00
|
|
|
.mb-2
|
2021-03-12 09:09:06 +00:00
|
|
|
= form.text_field :suggestion_commit_message, class: 'form-control mb-2', placeholder: Gitlab::Suggestions::CommitMessage::DEFAULT_SUGGESTION_COMMIT_MESSAGE
|
2020-01-13 12:08:04 +00:00
|
|
|
%p.form-text.text-muted
|
2022-02-12 21:16:25 +00:00
|
|
|
= s_('ProjectSettings|Leave empty to use default template.')
|
|
|
|
= sprintf(s_('ProjectSettings|Maximum %{maxLength} characters.'), { maxLength: Project::MAX_SUGGESTIONS_TEMPLATE_LENGTH })
|
2022-01-05 15:13:51 +00:00
|
|
|
- configure_the_commit_message_for_applied_suggestions_help_link_url = help_page_path('user/project/merge_requests/reviews/suggestions.md', anchor: 'configure-the-commit-message-for-applied-suggestions')
|
|
|
|
- configure_the_commit_message_for_applied_suggestions_help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: configure_the_commit_message_for_applied_suggestions_help_link_url }
|
|
|
|
= s_('ProjectSettings|%{link_start}What variables can I use?%{link_end}').html_safe % { link_start: configure_the_commit_message_for_applied_suggestions_help_link_start, link_end: '</a>'.html_safe }
|