2020-01-13 12:08:04 +00:00
|
|
|
- form = local_assigns.fetch(:form)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%b= s_('ProjectSettings|Merge suggestions')
|
|
|
|
%p.text-secondary
|
|
|
|
= s_('ProjectSettings|The commit message used to apply merge request suggestions')
|
2020-09-11 18:08:42 +00:00
|
|
|
= link_to sprite_icon('question-o'),
|
2020-01-13 12:08:04 +00:00
|
|
|
help_page_path('user/discussions/index.md',
|
|
|
|
anchor: 'configure-the-commit-message-for-applied-suggestions'),
|
|
|
|
target: '_blank'
|
|
|
|
.mb-2
|
2021-02-02 15:09:06 +00:00
|
|
|
= form.text_field :suggestion_commit_message, class: 'form-control gl-form-input mb-2', placeholder: Gitlab::Suggestions::CommitMessage::DEFAULT_SUGGESTION_COMMIT_MESSAGE
|
2020-01-13 12:08:04 +00:00
|
|
|
%p.form-text.text-muted
|
|
|
|
= s_('ProjectSettings|The variables GitLab supports:')
|
2020-06-09 00:08:47 +00:00
|
|
|
- Gitlab::Suggestions::CommitMessage::PLACEHOLDERS.keys.each do |placeholder|
|
2020-01-13 12:08:04 +00:00
|
|
|
%code
|
|
|
|
= "%{#{placeholder}}".html_safe
|