Skip to end of banner
Go to start of banner

How to update the name of a pull request using Bitbucket Command Line Interface (CLI)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

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 productionor, run the action with --simulate parameter to verify the behaviour before deploying.

  • No labels