In this repository, we store reusable GitHub Actions workflows.
Recommended reading:
As of April 2022, Github doesn't support selecting from a list of PR templates (like it does with issues), but it will load different templates if specified through a query string. (?template=file.md
)
A possible approach to multiple PR templates is to create a default template ( PULL_REQUEST_TEMPLATE.md
- which is just a list of links) where you click preview and then can select your options. Example:
Code
## Available PR templates
<!--
Github doesn't allow PR template selection the same way that it is possible with issues.
Preview this and select the appropriate template:
-->
- [Version Release](?expand=1&template=version_release.md)
- _Alternatively delete and start empty_
All the other templates go inside the PULL_REQUEST_TEMPLATE
directory. Each template should be a markdown file, whose filename you'll have to add to the list of links in the default template.
Here's a quick video demonstrating the flow.
Screen.Recording.2022-02-16.at.09.22.21.mov
There's an Issue 1 template that can be used across any repositories in our Github account. Issue 1s are used to keep track of new projects and phases.
Here's how you can use it. In a repo, click Issues > New Issue > Issue 1