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:
- Create an ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md files at root level of my project.
- Create a .gogs folder at root level of my project with ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md files
- 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!
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
.