azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

"PR create" should use default PR template

Open larsbj1988 opened this issue 5 years ago • 4 comments

Is your feature request related to a problem? Please describe. It is not possible to create a PR from CLI using PR templates. The PR template cannot be added after PR is created.

Describe the solution you'd like The command "pr create" should respect default pull request template at least. It would be nice to have an option to use another template upon creation. Like: "pr create --template "template.md"

Additional context https://docs.microsoft.com/en-us/azure/devops/repos/git/pull-request-templates?view=azure-devops

larsbj1988 avatar Apr 25 '19 11:04 larsbj1988

We will look into this as this seems to be a feature update in recent api release.

snankani avatar May 23 '19 05:05 snankani

We have automatic PRs created via a pipeline and this is kinda blocking our flow. It doesn't seem supported by the REST api yet either. https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/create?view=azure-devops-rest-6.1

Seems to be tracked here https://developercommunity.visualstudio.com/t/Pull-request-template-not-applied-when-P/1359150?space=21&q=pull+request+rest+template+create&stateGroup=active

krokofant avatar Oct 21 '21 12:10 krokofant

Now this is badly affecting our workflow as well as the vast majority of our developers create PRs using the AZ ClI. Any update on when this would be resolved?

Thanks, Kiran Hegde

kirannhegde avatar Dec 29 '21 12:12 kirannhegde

Hi Any update on this feature?

yehiyam avatar Apr 23 '23 08:04 yehiyam