Skip to content

Add template support to mr create and issue create workflow

Clement Sam requested to merge profclems-patch-2 into trunk

Description This PR adds template support to the mr create and issue create commands.

Follows the format officially supported by GitLab (https://docs.gitlab.com/ee/user/project/description_templates.html#setting-a-default-template-for-issues-and-merge-requests)

The templates are fetched from the working directory. Issue templates: .gitlab/issue_templates/* Merge request templates: .gitlab/merge_request_templates/*

Survey is extended to help work on #329 (closed)

Related Issue Resolves #330 (closed)

Motivation and Context

How Has This Been Tested?

Manually tested on glab's test repo.

I will add tests in a separate PR

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports