To set a default description template for merge requests, either: On your project’s left sidebar, select Settings > General and expand Visibility, project features, permissions.Įnsure issues or merge requests are set to either Everyone with access or Only Project Members.In a project, you can choose a default description template for new issues and merge requests.Īs a result, every time a new merge request or issue is created, it’s pre-filled with the text you To discard any changes to the description you’ve made after selecting the template: expand the Choose a template dropdown list and select Reset template.ĭefault.md (case insensitive) template introduced in GitLab 14.8. When you select a description template, its content is copied to the description text box. If the Description text box hasn’t been empty, to confirm, select Apply template.Select the Choose a template dropdown list.Create or edit an issue or a merge request.When you create or edit an issue or a merge request, it shows in the Choose a template dropdown list. To check if this has worked correctly, create a new merge requestĪnd see if you can find your description template in the Choose a template dropdown list. Where mytemplate is the name of your merge request template. gitlab/merge_request_templates/mytemplate.md, Next to the default branch, in the File name text box, enter.To create a merge request description template: gitlab/merge_request_templates/ directory in your repository. Similarly to issue templates, create a new Markdown (. To check if this has worked correctly, create a new issueĪnd see if you can find your description template in the Choose a template dropdown list. Where mytemplate is the name of your issue template. On the left sidebar, select Repository.On the top bar, select Main menu > Projects and find your project.Create an issue templateĬreate a new Markdown (. gitlab/merge_request_templates directory. Stored in your project’s repository in the.For every issue or merge request for a specific project, so the layout is consistent.įor description templates to work, they must be:.For different stages of your workflow, for example, feature proposal, feature improvement, or a bug report. ![]() ![]() Inherit the templates defined at a higher level. You can define these templates in a project, group, or instance. You can define templates to use as descriptions Example description template Description templates.Priority of default description templates.Set a default template for merge requests and issues.Set instance-level description templates.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |