You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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??
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
Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.