Skip to main content

CommitFiles

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

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

This script gets content files as input from the context, commits the files in the correct folder and creates the pull request text.

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 - Bitbucket

Inputs#


Argument NameDescription
filesThe files to commit.
branchThe branch name to commit.
git_integrationWhich version control integration to use.
packThe name of the pack.
userThe current user details from the command "getUsers".
commentShort description to add to the pull request text.
templatePull request description template.

Outputs#


PathDescriptionType
PR_textThe pull request text.string