2020-03-13 15:44:24 +05:30
|
|
|
- form = local_assigns.fetch(:form)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%b= s_('ProjectSettings|Merge suggestions')
|
|
|
|
%p.text-secondary
|
2021-06-08 01:23:25 +05:30
|
|
|
- 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')
|
2021-04-17 20:07:23 +05:30
|
|
|
- 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|The commit message used when applying merge request suggestions. %{link_start}Learn more about suggestions.%{link_end}').html_safe % { link_start: configure_the_commit_message_for_applied_suggestions_help_link_start, link_end: '</a>'.html_safe }
|
2020-03-13 15:44:24 +05:30
|
|
|
.mb-2
|
2021-04-17 20:07:23 +05:30
|
|
|
= form.text_field :suggestion_commit_message, class: 'form-control mb-2', placeholder: Gitlab::Suggestions::CommitMessage::DEFAULT_SUGGESTION_COMMIT_MESSAGE
|
2020-03-13 15:44:24 +05:30
|
|
|
%p.form-text.text-muted
|
2021-04-17 20:07:23 +05:30
|
|
|
= s_('ProjectSettings|Supported variables:')
|
2020-06-23 00:09:42 +05:30
|
|
|
- Gitlab::Suggestions::CommitMessage::PLACEHOLDERS.keys.each do |placeholder|
|
2020-03-13 15:44:24 +05:30
|
|
|
%code
|
|
|
|
= "%{#{placeholder}}".html_safe
|