You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Currently using Bitbucket Server, I am trying to automate pull requests using a shell script. However I am getting the following error:
Parameter conditions "fork" not met for actual request parameters: create={}
Here is the curl command I am currently using:
curl -v https://MYHOST.MYSERVER/projects/AP/repos/$REPO/pullrequests?create \
-u $USERNAME:$PASSWORD \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"title": "$COMMIT_TEXT",
"description": "automated PR. $COMMIT_TEXT",
"fork_policy": "no_forks",
"source": {
"branch": {
"name": "$NEW_BRANCH"
}
"repository":{
"full_name":"$REPO"
}
},
"destination": {
"branch": {
"name": "develop"
}
}
, "close_source_branch": false
}'
Hi @John Pooley if that question is related to Bitbucket Server please take a look at REST API docs for creating the pull request:
https://docs.atlassian.com/bitbucket-server/rest/7.6.0/bitbucket-rest.html#idp293
Thanks,
Maciej Adamczak
hi thank you. I believe this has gotten me somewhat further, I am now get this error:
XSRF Security Token Missing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.