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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.