Bob Swift CLI Bitbucket Cloud createPullRequest error

jat_softpay June 11, 2021

Hi,

I'm trying to create a pull request for a Bitbucket cloud repo but I get this error:

➞ acli --action createPullRequest --repository "non-pci-terraform" --project " Infrastructure" --name "SPAY-2064 test create PR from CLI" --from "SPAY-2064-sftp-set-up-for-nets" --to "main" --reviewers "John Doe" --description "test"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

✔ Would you like to run or copy the command? (escape or ctrl-c to quit) · Run / Copy
Invalid action: createPullRequest. Use --action "?" or --action "<prefix>?" to get a list of actions.
› Error: Command failed with exit code 254: /home/jat/ACLI/acli --action createPullRequest --repository non-pci-terraform --project Infrastructure --name SPAY-2064 test create PR
› from CLI --from SPAY-2064-sftp-set-up-for-nets --to main --reviewers John Doe --description test

My environment is running Linux Mint.

1 answer

1 accepted

0 votes
Answer accepted
jat_softpay June 11, 2021

My bad I realise now this action isn't supported in bitbucket cloud - any chance it will be in the near future?

Reshma Begum _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2021

Hi @jat_softpay ,

Currently, there is no REST API to create pull requests in the Bitbucket cloud, as we use the Atlassian REST APIs to implement the actions, the same is not supported using our app Bitbucket Command Line Interface.

Please refer the below Atlassian feature request on the same.

https://jira.atlassian.com/browse/BCLOUD-16682

Once the API is available, the action can be implemented from our app.

We have created a support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-7165 to better track your request. However, we couldn't add you as a reporter.  Please sign up using this link https://beecom-products.atlassian.net/servicedesk/customer/portal/3/user/signup and share the user name/id. We'll then add you as the reporter and confirm. 

 

Thanks,

Reshma

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events