Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull request template for Bitbucket

For github we have a great feature for pull requests that is explained here https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/

and a very good example is here

https://github.com/angular/angular/blob/master/.github/PULL_REQUEST_TEMPLATE.md

Do we have something for Atlassian Bitbucket? If yes when did they start supporting this feature?

like image 640
mcvkr Avatar asked May 07 '18 16:05

mcvkr


People also ask

How do I create a pull request template in bitbucket?

Go to Repository or Project settings > Description template. (Repository only) From the Project settings inheritance, select Use custom settings. From Template behavior, select Create a custom description template.

How do I create a pull request template?

The easiest way to add a pull request template to your repository is by adding a file called pull_request_template.md in the root of your directory. It's a markdown file, so you can use any of the markdown that is available to you. More about markdown in the mastering markdown syntax guide.

What is a pull request template?

What is a Pull Request template? A pull request template is a file containing markdown text that is added to your pull request description when the pull request is created. Essentially, the template is a bunch of text that developers don't want to write each time they submit code.


2 Answers

Bitbucket Cloud (BitBucket.org)

Such a feature was not supported, but now is! It's called Default Description, and it's been available since Nov 2018 if you use bitbucket.org.

You can access it in your repository's settings page.

enter image description here

Bitbucket Server

If you use your own instance of BitBucket, there's an equivalent feature in the works: BSERV-8663.

like image 83
Brad Turek Avatar answered Sep 19 '22 18:09

Brad Turek


Unfortunately, pull request template is not supported for Atlassian Bitbucket recently. And the feature has not been added in their roadmap so far.

More details, you can also refer the issue Custom Pull Request Description Template (BB-14637) and the post Creating a template for pull request.

like image 21
Marina Liu Avatar answered Sep 16 '22 18:09

Marina Liu