Pull requests are a very handy feature when you are working in a team. However, you might want to have a check list of some sort or maybe a special format on your pull requests. One way to standardize your pull requests are to use templates. So I use Azure Devops and thought that a template are only available in Guthub. But I'm wrong.
There exists different types of Pull Request templates, two of them I will describe here. They are all written in Markdown, so it's very handy to format this.
# Default Template
To make a default pull request template you need to create a file called pull_request_template.md
or pull_request_template.txt
.
The file needs to be placed in a folder called .azuredevops
, .vsts
or docs
. The folder is required to be placed in your root folder.
Pull request template example:
Pull request description...
### Type
- [ ] New feature
- [ ] Refactoring
- [ ] Bug-fix
- [ ] DevOps
- [ ] Testing
### Checklist
- [ ] Tests have passed
- [ ] Check linting
- [ ] Rember to check universal design
### Demo
- [ ] https://feature1.example.com
# Branch Specific Template
Additionally you might want to have branch specific templates. If you want to use a certain template for each pull request to develop you need to create a file called develop.md
or develop.txt
and place the file in .azuredevops/pull_request_template/branches/develop.md
. The folder structure should be placed in your project's root folder. You can also change replace the .azuredevops
folder with .vsts
, docs
or no folder at all and place the pull_request_template(.md|.txt)
in your root folder.
If you want to read more of the specific to Azure DevOps pull request templates you can find their documentation here (opens new window)