Pull Request Creation - Github

This playbook creates a pull request using Github integration.

XSOAR CI/CD · 27 tasks · 3 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.
  • CICDKeepPlaceholdersInFiles — Set to true if the files should be preserving ${} placeholders instead of replacing them with the context data.

Commands used

GitHub-create-branch GitHub-create-pull-request GitHub-get-branch GitHub-list-branch-pull-requests GitHub-request-review GitHub-update-pull-request

Flowchart

yes yes yes yes yes yes Start Start Get main branch - GitHub-get-branch Get main branch GitHub-get-branch Create new branch - GitHub-create-branch Create new branch GitHub-create-branch Commit files - CommitFiles Commit files CommitFiles Create pull request - GitHub-create-pull-request Create pull request GitHub-create-pull-request Request pr review - GitHub-request-review Request pr review GitHub-request-review Add reviewer? Add reviewer? Get branch - GitHub-get-branch Get branch GitHub-get-branch Does branch exist? Does branch exist? 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 - GitHub-list-branch-pull-requests Get pull request GitHub-list-branch-pull-requests 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 - GitHub-create-pull-request Create pull request with ... GitHub-create-pull-request Is Pull Request title empty? Is Pull Request title empty? Update pull request - GitHub-update-pull-request Update pull request GitHub-update-pull-request