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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.