Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define a pull request template in Gogs Server

Tags:

git

gogs

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!

like image 376
Emiliano Viotti Avatar asked Mar 24 '26 02:03

Emiliano Viotti


1 Answers

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.

like image 111
chuckx Avatar answered Mar 25 '26 16:03

chuckx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!