Pull Request Creation - Bitbucket

This playbook creates a pull request using Bitbucket integration.

XSOAR CI/CD · 32 tasks · 4 inputs · 0 outputs

Inputs

  • PullRequestTemplate — Pull request description template.
  • MainBranch — The name of the branch you want the changes pulled into, which must be an existing branch on the current repository.
  • PackName — The name of the pack
  • File — The File or Files to commit to the new or updated branch or pr

Commands used

bitbucket-branch-create bitbucket-branch-get bitbucket-pull-request-create bitbucket-pull-request-list bitbucket-pull-request-update

Flowchart

yes yes yes yes yes yes Start Start Get main branch - bitbucket-branch-get Get main branch bitbucket-branch-get Create new branch - bitbucket-branch-create Create new branch bitbucket-branch-create Create pull request - bitbucket-pull-request-create Create pull request bitbucket-pull-request-create Update pr and add a reviewer - bitbucket-pull-request-update Update pr and add a reviewer bitbucket-pull-request-update Add reviewer? Add reviewer? Get branch - bitbucket-branch-get Get branch bitbucket-branch-get Does branch exist? Does branch exist? Set branch name from CI/CD Branch field - Set Set branch name from CI/C... Set Is CI/CD Branch field given Is CI/CD Branch field given Suggest branch name - SuggestBranchName Suggest branch name SuggestBranchName Set branch name from SuggestBranchName output - Set Set branch name from Sugg... Set Is CI/CD Pull Request Branch field given Is CI/CD Pull Request Bra... Set branch name from CI/CD Pull Request Branch field - Set Set branch name from CI/C... Set Get pull request list - bitbucket-pull-request-list Get pull request list bitbucket-pull-request-list Set MessageText value for update action - Set Set MessageText value for... Set Set MessageText for new pull request - Set Set MessageText for new p... Set Set the branch name Set the branch name Check if branch exists and create it if not Check if branch exists an... Commit the files Commit the files Create new pull request Create new pull request Update existing pull request Update existing pull request Create pull request with pack name as title - bitbucket-pull-request-create Create pull request with ... bitbucket-pull-request-create Is Pull Request title empty? Is Pull Request title empty? Does branch exist? Does branch exist? Find Relevant pull request ID - Set Find Relevant pull reques... Set Update relevant Pull Request - bitbucket-pull-request-update Update relevant Pull Request bitbucket-pull-request-update Set New Branch - Set Set New Branch Set Set Existing Branch - Set Set Existing Branch Set Commit files - CommitFiles Commit files CommitFiles Set pull request ID - Set Set pull request ID Set Delete pull requests list context - DeleteContext Delete pull requests lis... DeleteContext