I saw that there's a Default Description option added to the PRs which allows for a default description to be added for any PR raised. Since we've got about 50 repos that I need to update to add this, is there a quicker way to do so? Or can it only be done using a script that calls the APIs?
Thanks
Hey @Karlo Diamante!
So glad you asked! We recently added a setting specifically to do this, so your question is timely.
First things first, this is for Bitbucket Cloud (bitbucket.org), and you need to have admin rights for a repository to enable this setting.
Short answer: In repository settings, look for "Default description."
Long answer (from the doc):
Default pull request descriptions
The Description field is how pull request authors can set the context for a code review by adding images (like screenshots), links, or provide instructions for reviewers. This can also be especially useful to communicate review guidelines, or even to remind authors about common tasks that should be done while reviewing code. By default, pull request descriptions automatically populate with a list of relevant commits when there's more than one commit on the source branch.
Repository admins can add predefined descriptive text to all new pull requests from the Default description repository settings page.
Hi @Paz Thanks! What I was asking was if it's possible to apply this Default Pull Request Descriptions in bulk? We have A LOT of repositories and I want to make use of this feature but don't want to manually update each repo one by one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aaah... sorry, misunderstood you.
No, we don't have a way to apply repo settings in bulk. Sorry about that =/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I hope this put method will help for you
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm46229603845728
Cheers,
Gonchik Tsymzhitov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.