Pull Request Creation - Generic

This playbook creates a pull request from the content zip file.

XSOAR CI/CD · 22 tasks · 5 inputs · 0 outputs

Inputs

  • ChannelName — The channel to which to send notifications.
  • 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.
  • GitIntegration — Which version control integration to use. We support github, gitlab, bitbucket and azuredevops.
  • AzureDevOpsTargetRef — Mandatory for Azure DevOps. The reference branch or SHA commit to create a new branch from.

Commands used

getUsers send-notification setIncident

Flowchart

yes yes yes github bitbucket GitLab AzureDevOps Start Start Unzip pack - UnzipFile Unzip pack UnzipFile Read metadata.json file - ReadFile Read metadata.json file ReadFile Set pack name - Set Set pack name Set Send notification - send-notification Send notification send-notification Get username - getUsers Get username getUsers Set incident fields values - setIncident Set incident fields values setIncident Is Slack v2 enabled? - IsIntegrationAvailable Is Slack v2 enabled? IsIntegrationAvailable Is Microsoft Teams enabled? - IsIntegrationAvailable Is Microsoft Teams enabled? IsIntegrationAvailable Send notification Send notification Done Done Is channel given? Is channel given? Pull Request Creation - Github - Pull Request Creation - Github Pull Request Creation - G... Pull Request Creation - Github Create the pull request Create the pull request What integration to use for create the pull request What integration to use f... Print error - PrintErrorEntry Print error PrintErrorEntry Pull Request Creation - Bitbucket - Pull Request Creation - Bitbucket Pull Request Creation - B... Pull Request Creation - Bitbu... Set incident fields values - setIncident Set incident fields values setIncident Pull Request Creation - GitLab - Pull Request Creation - GitLab Pull Request Creation - G... Pull Request Creation - GitLab Set incident fields values - setIncident Set incident fields values setIncident Set incident fields values - setIncident Set incident fields values setIncident Pull Request Creation - AzureDevOps - Pull Request Creation - AzureDevOps Pull Request Creation - A... Pull Request Creation - Azure...