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.
The parameters used in the 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.
Execute this action to update the name of the pull request:
Code Block theme Midnight --action updatePullRequest --project "TRAIN" --repository "Repo_Training" --pullRequest "PR_code" --name "PR_new"
The output of the CLI action:
Code Block theme Midnight 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.
Info |
---|
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. |