add a template is not displaying in Azure dev ops latest

2.3k Views Asked by At

I tried creating my own .MD files for a template to get for my branch PR's like an image below

in my develop branch

then I created one more branch based on it and did some changes and tried to create a pull request but the pull request is not showing the template but the default description as changed file name

I'm not able to see even Add a template dropdown enter image description here

is I am missing any master settings and is this only available in paid accounts?

I was referring to the link https://learn.microsoft.com/en-us/azure/devops/repos/git/pull-request-templates?view=azure-devops&source=docs so is it outdated in that case can you help me with the latest steps or link

1

There are 1 best solutions below

3
On BEST ANSWER

We need save these .md files in the default branch.

According to the doc: Branch specific pull request templates must be saved in the default branch of your repository using the following folder hierarchy: pull_request_template/branches/. These folders must be based in one of the following folders in your repository.

  • A folder named .azuredevops that is contained in the root folder of the repository
  • A folder named .vsts that is contained in the root folder of the repository
  • A folder named docs that is contained in the root folder of the repository
  • The root folder of the repository

And this is my test result:

enter image description here

Update1

According to the doc and my test result, we could only create template in the default branch like master, If we create template file in other branch, we cannot use it in the pull request.

You could add your request for this feature on our UserVoice site, which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.