Pull Request Creation - GitLab

This playbook creates a pull request using GitLab integration.

XSOAR CI/CD · 28 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.
  • PackName — The name of the branch you want the changes pulled into, which must be an existing branch on the current repository.

Commands used

gitlab-branch-create gitlab-branch-list gitlab-merge-request-create gitlab-merge-request-list gitlab-merge-request-update

Flowchart

yes yes branch exist yes yes yes Start Start Get main branch - gitlab-branch-list Get main branch gitlab-branch-list Commit files - CommitFiles Commit files CommitFiles Create pull request - gitlab-merge-request-create Create pull request gitlab-merge-request-create Request pr review - gitlab-merge-request-update Request pr review gitlab-merge-request-update Add reviewer? Add reviewer? Get branch - gitlab-branch-list Get branch gitlab-branch-list 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 merge request - gitlab-merge-request-list Get merge request gitlab-merge-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 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 - gitlab-merge-request-create Create pull request with ... gitlab-merge-request-create Is Pull Request title empty? Is Pull Request title empty? Create new branch Gitlab - gitlab-branch-create Create new branch Gitlab gitlab-branch-create Set creating new branch - Set Set creating new branch Set Set existing branch - Set Set existing branch Set merge request update - gitlab-merge-request-update merge request update gitlab-merge-request-update