Draft: Add MR default template

Context

In a recent branch meeting, Cee mentioned that they use a default MR template in vizlab MRs. I have a template that I use (that is based on suggestions from the DSP manual and suggestions from Julie) that is helpful. Joe suggested it might be a good fit for mortar. It turns out not only can you create an MR template stored as a file in your repo, but you can set it as the default MR template.

Summary of changes

  1. Add MR template to inst directory
  2. Create use_gitlab_mr_template() to write the template file to the correct location to be used as the default template

Expected results

When mortar::use_gitlab_mr_template() is run and that file committed to the main branch of a repo, further MRs should use the template.

Verification of results

In a new repo that I haven't really committed to, I ran the use_gitlab_mr_template() and committed the file to the main branch. When I start a new MR, the template is used. See it in action here.

Requested review

  1. Make sure you are ok with the default behavior of use_project_usgs() including the MR template.

Merge request reports

Loading