Welcome to mirror list, hosted at ThFree Co, Russian Federation.

service_desk_helper.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d67ee5b8a11dbd2f90ce5a378d8abc912f56c56b (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

module ServiceDeskHelper
  def set_template_file(file_name, content)
    file_path = ".gitlab/issue_templates/#{file_name}.md"
    project.repository.create_file(user, file_path, content, message: 'message', branch_name: 'master')
    settings.update!(issue_template_key: file_name)
  end
end