Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Bitbucket Cloud Command Line Interface (CLI)
  • Reference
    Reference
     This trigger is hidden
  • User's Guide
    User's Guide
     This trigger is hidden
  • Administrator's Guide
    Administrator's Guide
     This trigger is hidden
  • Release notes
    Release notes
     This trigger is hidden
  • Share data with the Support team
    Share data with the Support team
     This trigger is hidden
  • Downloads
    Downloads
     This trigger is hidden
Results will update as you type.
  • getPullRequest
  • getPullRequestList
  • getTeam
  • getTeamList
  • updateProject
  • getBuildStatusList
  • getUser
  • getWorkspace
  • getWorkspaceList
  • renderRequest
  • runFromWorkspaceList
  • getUpgradeInfo
  • provideFeedback
  • getDeploymentList
  • getEnvironmentList
  • getPipeline
  • getPipelineList
  • getRunnerList
  • runFromProjectList
  • runFromRepositoryList
  • startPipeline
  • addVariables
  • getVariableList
  • removeVariables
  • updateVariables
  • addDownload
  • addEnvironment
  • getDownload
  • getDownloadList
  • getEnvironment
  • getPipelineCacheList
  • removeDownload
  • removeEnvironment
  • removePipelineCache
  • runFromDeploymentList
  • runFromDownloadList
  • runFromEnvironmentList
  • runFromPropertyFile
  • sleep
  • addRunner
  • createPullRequest
  • exportData
  • getPipelineCache
  • getPipelineStep
  • getPipelineStepList
  • getRunner
  • getSqlResultList
  • removeRunner
  • restartPipeline
  • runFromPipelineList
  • runFromPipelineStepList
  • runFromRunnerList
  • startPipelineStep
  • stopPipeline
  • updatePullRequest
  • approveCommit
  • approvePullRequest
  • createBranch
  • createCommit
  • declinePullRequest
  • deleteBranch
  • mergePullRequest
  • runFromBranchList
  • runFromCommitList
  • runFromPullRequestList
  • unapproveCommit
  • unapprovePullRequest
  • getAutomation
  • getAutomationList
  • runAutomation
  • runFromAutomationList
  • createRepository
  • deleteRepository
  • getDeployment
  • getFile
  • getPermissionList
  • getTag
  • getTagList
  • getTestCaseList
  • getUserList
  • runFromPermissionList
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
createPullRequest

createPullRequest

Dec 03, 2024

See also: Actions

Description

Create a new pull request. Use parameter from to set the source branch. Use parameter to to set the target branch. The target branch will be defaulted to master branch if parameter to is not specified. Use parameter reviewers to provide comma separated list of reviewers for the pull request. Note the owner of the pull request cannot be in the reviewers list. Note if there is already an open pull request with provided source and target branch, that pull request will be updated.

Required Parameters

repository, pullRequest, from

Optional Parameters

workspace, description, to, reviewers

Type

Create

Category

Pull Requests

Output Formats

Replacement Variables

pullRequest, pullRequestId

Since Version10.4

Examples

createPullRequest

Related How To's

, multiple selections available, Use left or right arrow keys to navigate selected items
cli-action
cli-action-createpullrequest
cli-parameter-repository
cli-parameter-pullrequest
cli-parameter-from
cli-parameter-workspace
cli-parameter-description
cli-parameter-to
cli-parameter-reviewers
cli-parameter-action
cli-parameter-dateformat
cli-parameter-dateformat2
cli-parameter-help
cli-parameter-outputtype
cli-parameter-special
cli-parameter-quiet
cli-parameter-verbose
cli-parameter-debug
cli-action-category-pull-requests
cli-action-type-create

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.

{"serverDuration": 15, "requestCorrelationId": "2ec221726fa4452ca25219cc27e1d7d3"}