CommitFiles
This script gets content files as input from the context, commits the files in the correct folder and creates the pull request text.
python · XSOAR CI/CD
Details
| ID | CommitFiles |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/xsoar-tools:1.0.0.11807991 |
README
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
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.0.0 |
Used In
This script is used in the following playbooks and scripts.
- Pull Request Creation - Github
- Pull Request Creation - Bitbucket
Inputs
| Argument Name | Description |
|---|---|
| files | The files to commit. |
| branch | The branch name to commit. |
| git_integration | Which version control integration to use. |
| pack | The name of the pack. |
| user | The current user details from the command “getUsers”. |
| comment | Short description to add to the pull request text. |
| template | Pull request description template. |
Outputs
| Path | Description | Type |
|---|---|---|
| PR_text | The pull request text. | string |
args: - description: Set to true if the files should be committed while preserving ${} placeholders instead of replacing them with context data. isArray: false name: cicd_keep_placeholders_in_files defaultValue: true - description: The files to commit. isArray: true name: files required: true - description: The branch name to commit. name: branch required: true - auto: PREDEFINED description: Which version control integration to use. name: git_integration predefined: - Gitlab - GitHub - Bitbucket - AzureDevOps - description: The name of the pack. name: pack required: true - description: The current user details from the command "getUsers". name: user required: true - description: Short description to add to the pull request text. name: comment - description: Pull request description template. name: template comment: This script gets content files as input from the context, commits the files in the correct folder and creates the pull request text. commonfields: id: CommitFiles version: -1 contentitemexportablefields: contentitemfields: fromServerVersion: '' dockerimage: demisto/xsoar-tools:1.0.0.11807991 enabled: true name: CommitFiles outputs: - contextPath: PR_text description: The pull request text. type: string runas: DBotWeakRole script: '' scripttarget: 0 subtype: python3 tags: [] type: python fromversion: 6.0.0 tests: - No tests (auto formatted)