This article explains how to update the name of a Pull Request using Bitbucket Command Line Interface (CLI) app.
Instructions
Use updatePullRequest action to update the name of a pull request. Pull requests are a feature that makes it easier for developers to collaborate using Bitbucket.
Execute this action to update the name of the pull request:
--action updatePullRequest --project "TRAIN" --repository "Repo_Training" --pullRequest "PR_code" --name "PR_new"
The output of the CLI action:
Pull request: 9 updated with name: PR_new
- An example screenshot is shown below:
The parameters used in the above action are:
--project value, refers to the project key.
--repository value, refers to the repository name.
--pullRequest value, refers to the name of the pull request.
--name value, refers to the new name of the pull request.
It is recommended to test the command in a non-production environment before running in production, or, run the action with --simulate parameter to verify the behaviour before deploying.