Hi Guys,
I am developing a pipeline bot. This bot makes a REST call to the following endpoint with a payload. However, the endpoint returns a pull request creation link instead of an opened pull request link. When I tried the same request body and endpoint with Postman, the pull request was successfully created.
And the response body contains the id of the pull request as the id field.
In my case the pull request id for this repository was 1. This is the start of the response:
Hi @ccurti, Thanks for your response. Yes i’ve already made rest-call with postman and it worked. The problem is that, when i made a rest-call to the endpoint in ci/cd pipeline it returns pull request creation link instead of pullrequest created. Have you ever tried create pull request in bitbucket pipeline? When you try it you will understand what i mean
I originally wanted to have the command directly in the bitbucket-pipelines.yml file but after some time I decided it would be easier to set up, maintain and read it if it was a separate bash file.