Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket:Is there a way to do bulk update the Default Description of all repositories in a project?

Karlo Diamante January 8, 2019

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

2 answers

0 votes
Paz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2019

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.

Karlo Diamante January 9, 2019

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.

Paz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2019

Aaah... sorry, misunderstood you.

No, we don't have a way to apply repo settings in bulk. Sorry about that =/

0 votes
Gonchik Tsymzhitov
Community Champion
January 8, 2019

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

Karlo Diamante January 9, 2019

Hi Gonchik, thanks but I'm running bitbucket on the cloud.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events