Where each platform looks for a pull request template
The file name and folder are what make a template work. Get either wrong and the platform ignores the file without telling you. The generator writes to the path each platform documents:
| Platform | Default template | Several templates |
|---|---|---|
| GitHub | .github/pull_request_template.md (root or docs/ also work) | .github/PULL_REQUEST_TEMPLATE/*.md, chosen with ?template=name.md |
| GitLab | .gitlab/merge_request_templates/Default.md | Any other .md in that folder, chosen from the template dropdown |
| Bitbucket Cloud | .bitbucket/pull_request_template.md | One file only |
| Azure DevOps | .azuredevops/pull_request_template.md (also .vsts/, docs/, root) | .azuredevops/pull_request_template/*.md, under "Add a template" |
GitHub, GitLab and Azure DevOps read the template from the default branch, so it does nothing until it is merged. Bitbucket Cloud reads it from the source branch of each pull request, so branches cut before you committed the file will not pick it up until they merge or rebase on it.