I'm creating repository with POST request to this APIv2 endpoint.
I'm able to create blank repository without any branches and only myself as user. Sample request body:
{
"scm": "git",
"fork_policy": "allow_forks",
"name": "monitoring-lambda",
"project": { "key": "PRJ" },
"is_private": True
}
I would like to create initial branch, 'develop' for instance. I've tried to use key 'ref', mentioned in docs, but it didn't change anything:
{
...
"ref": {
"name": "develop",
"type": "branch"
}
...
}
Additionally, I want to add some users or groups to it. I can see fields like 'hash', 'message' which seems to be related to commit, or 'participants', which is probably list of users. However, it's not possible for me to figure out anything concrete from API documentation. How can I use these fields, what do they do indeed? What is 'all of:' supposed to mean?
Please, share if you now whether it's possible to do what I want in scope of this request, what are these fields or any example usage of them.