Pull Request templates in Bitbucket Cloud

要約:

Sometimes, as a user, it's a requirement to configure the default pull request description directly through Git rather than using Bitbucket's Pull Request description field, or even have a default description based on the current source branch. 

This page describes how you can create a file in your Bitbucket repository that will allow you to configure the default pull request description for Bitbucket repositories.


Environment:

Bitbucket Cloud

How to use the feature:

  1. Either through Bitbucket Cloud's UI or through Git, create a new file with the exact path described below:
    .bitbucket/pull_request_template.md
  2. In this file, type in the default PR description that you wish.
    (info) This file supports markdown.
  3. Commit the file to your Bitbucket Cloud repository. 


(warning) It's important to note that the pull_request_template.md file is branch-dependent, meaning that the description used in your PRs will be the one in the source branch.

  • If the .bitbucket/pull_request_template.md file is not present in the source branch, then the default description will appear in your pull request.
  • If there is a .btibucket/pull_request_template.md file in both the source and destination branches, the description from the file in the source branch will be used. 




Last modified on Mar 28, 2025

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.