The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Git pull request in BitBucket via cURL

Srinivas Reddy
April 3, 2019



how to a bamboo variable in

fromRef": { "id": "refs/heads/'"${bamboo.branch_name}"

curl -X POST -H "Content-Type: application/json" -u username:passwd --basic https://bitbucket.example.com/rest/api/1.0/users/srinivas.borampet/repos/solr-config/pull-requests -d '{ "title": "Auto Title", "description": "Auto-Generated", "state": "OPEN","open": true,"closed": false, "fromRef": { "id": "refs/heads/'"${bamboo.branch_name}"'", "repository": { "slug": "solr-config", "name": null, "project": { "key": "~srinivas.borampet" }}}, "toRef": {"id": "refs/heads/master", "repository": {"slug": "solr-config", "name": null, "project": {"key": "~srinivas.borampet"}}}, "locked": false,"reviewers":[{"user":{"name": "vijay.sathyamoorthy"}}],"links": {"self": [null]}}'

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events