SuggestBranchName
XSOAR CI/CD Pack.#
This Script is part of theSupported 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 DataName | Description |
---|---|
Script Type | python3 |
Cortex XSOAR Version | 6.0.0 |
#
Used InThis script is used in the following playbooks and scripts.
- Pull Request Creation - Github
- Pull Request Creation - Gitlab
- Pull Request Creation - Bitbucket
#
InputsArgument Name | Description |
---|---|
pack | The name of the pack. |
use_command | Which command to use. Possible commands: gitlab-branch-list GitHub-get-branch * bitbucket-branch-get |
#
OutputsPath | Description | Type |
---|---|---|
AvailableBranch | Available branch name based on the pack name. | string |