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]}}'
Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register today