How to define a pull request template in Gogs Server

954 Views Asked by At

Basically I want to define templates for issues and pull request in Gogs repositories as Github does (see here) but I have failed with total success.

I tried in the following ways:

  1. Create an ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md files at root level of my project.
  2. Create a .gogs folder at root level of my project with ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md files
  3. Create a .github folder at root level of my project with ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md files

None of these configurations worked for pull request templates. On the other hand both 1 and 2 worked for issues templates.

What am I missing? I am doing something wrong? Maybe GOGs does not support templates for pull requests? I checked the official documentation without success.

Any help will be well appreciated!

1

There are 1 best solutions below

1
On BEST ANSWER

You're using the wrong filename for the pull request template.

The expected file name for the pull request is PULL_REQUEST.md (i.e. the name does not include _TEMPLATE).

For comparison, the expected filename for the issue template is ISSUE_TEMPLATE.md.