what is the command to create a new pull request in Bitbucket.
I am automating the check-in the code to Bitbucket and create pull request.
I referred many documents and found the curl command. but it is also not working and I don't know the what is the use of each module in that command.
see the below command that I have tried.
curl -u username:Password -H "Content-Type: application/jso https://bitbucket.server.com/rest/api/1.0/projects/myProject/repos/myRepo/pull-requests -X POST --data @req.json
created the req.json
file, copied the content to file
see the below content that I copied.
{"title":"test","description":"test","fromRef":{"id":"refs/heads/del","repository":{"slug":"BB_repo","name":null}},"toRef":{"id":"refs/heads/master","repository":{"slug":"BB_repo","name":null}}}
can anyone suggest me the better way to create pull request? I need some explanation as I'm new to Bitbucket