Skip to main content

SuggestBranchName

This Script is part of the XSOAR CI/CD Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

The script gets the pack name as input and suggests an available branch name, for example: pack name is "MyPack" the branch name will be "MyPack". If a branch with the name "MyPack" exists, the script return "MyPack_1".

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.0.0

Used In#


This script is used in the following playbooks and scripts.

  • Pull Request Creation - Github
  • Pull Request Creation - Gitlab
  • Pull Request Creation - Bitbucket

Inputs#


Argument NameDescription
packThe name of the pack.
use_commandWhich command to use. Possible commands: gitlab-branch-list GitHub-get-branch * bitbucket-branch-get

Outputs#


PathDescriptionType
AvailableBranchAvailable branch name based on the pack name.string