1

I am using gitlab templates (and labels also), but want to make them mandatory to submit a request. Not able to find needed reference to so.

Edit: what I am looking for is some mandatory check i.e like without selecting any of template (and label) you can't post request.

  • But it's right on that page? "Setting a default template for issues and merge requests"? – Seth Jul 04 '19 at 08:48
  • @seth I think that means you can give some default templates to user ( developer) but what I am looking for is some mandatory check i.e without selecting any of them you can't post request. Thanks – Randeep tomar Jul 04 '19 at 08:54
  • If it's the default, it's a mandatory layout? What's actually missing? What more do you need? – Seth Jul 04 '19 at 10:10
  • Is it possible to disable the create request button If the description box is empty? @Seth – Randeep tomar Jul 04 '19 at 10:14
  • No idea. This might be relevant. – Seth Jul 04 '19 at 11:03
  • Although it's definitely a valid technical question, I think it's controversial conceptually.
    With Pipeline as Code you do want to define your pipeline as you like in your sources. Hence anyone can raise MR with just dummy job in .gitlab-ci.yml, overcoming all the rules.
    If you have sane PR review process, that should flag it.
    And you can configure project settings to require certain number of approvers or even specify who should do that. You can of course write something custom, e.g. external job that does the validation of the pipeline script, but it would be some work.
    – Ivan Jul 04 '19 at 14:06
  • I am sorry @Ivan , can you please explain your comment. Thanks – Randeep tomar Jul 05 '19 at 06:51
  • Which part? 1) conceptual 2) PR review 3) external validation job? – Ivan Jul 05 '19 at 07:28

0 Answers0