I am using a self-hosted gitea instance for a small company.
After setting up and working with the instance for a while we are now trying to automate and improve some workflows in our git process.
One of the things is that we currently have a custom Pull Request template setup on a repository where if a developer does a pull request they have to fill in some standard things like the associated ticket number etc.
Another thing we have in the template is a list with a number of checkboxes that developer has to check off before being allowed to merge the commit, things like “Have all database migrations been run“ and “Has the end-user signed off on this“ etc. Mostly to ensure no steps are being skipped in our workflow.
We have a custom action that checks the status of this and blocks the merge commit until everything is checked. This all works fine with the template.
I would however like to have a different template per branch, some checkbox items are not applicable when pusing to the Development branch or another feature branch for example.
Is it possible to have a different Pull Request template per branch somehow?
The documentation makes no mention of it, it only mentions a template in the master branch.
I tried putting a different template in a specific branch, but it always shows the one from the master branch.