Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains update the name of the Pull Request using Bitbucket Command Line Interface (CLI).

...

Use updatePullRequest action to update the name of the Pull Request. Pull requests are a feature that makes it easier for developers to collaborate using bitbucket.

The parameter used in the below 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
    themeMidnight
    --action updatePullRequest --project "TRAIN" --repository "Repo_Training" --pullRequest "PR_code" --name "PR_new


  • The output of the CLI action:

    Code Block
    themeMidnight
    Pull request: 9 updated with name: PR_new


  • An example screenshot is shown below:

    Image Added


Info

It is recommended to test the commands in a non-production environment before running in the production.