Hello,
I have a problem creating multiple branch restrictions using a single curl command.
My code is:
curl -u username:password -X POST -H "Content-Type: application/application/vnd.atl.bitbucket.bulk+json" https://api.bitbucket.org/2.0/repositories/proj/myrepo/branch-restrictions \
-d '[{
"kind": "require_passing_builds_to_merge",
"pattern": "develop*",
"value": 1,
"branch_match_kind": "glob",
"groups": []
}, {
"kind": "push",
"pattern": "feature*",
"value": null,
"groups": []
}]'
and also could you please explain how can i give in user and groups in this code.
Please and thanks