Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there any list of bitbucket pull-requests/new query parameters?

Hello, is there any list of this feature?

 

We already found that we can use source and dest. But it would be useful another form inputs, is there any way to configure Title and Close checkbox??

1 answer

0 votes

Hi @lukas_klima ,

I assume that you are referring to creation of pull requests via Bitbucket API?

You can configure PR title with the field title which is a string, close source branch checkbox with close_source_branch which is boolean (you can set it to true or false).

An example call would be as follows:

curl -X POST -u username:app-password https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/pullrequests --header 'Content-Type: application/json' --data '{"title": "My PR Title ", "source": {"branch": {"name": "feature-branch"}},"destination": { "branch": {"name": "master"}},"close_source_branch":false}'

You can see more fields in the following link, in the section that gives examples (you can also set PR description and reviewers):

If you have any questions, please feel free to let me know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,710 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you