diff --git a/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-commands.sh b/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-commands.sh index eb5e0ea75e84..5a0f93ad6822 100644 --- a/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-commands.sh +++ b/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-commands.sh @@ -25,4 +25,9 @@ if [ -n "${FIREWATCH_CONFIG_FILE_PATH}" ]; then report_command+=" --firewatch-config-path=${FIREWATCH_CONFIG_FILE_PATH}" fi +# If the additional labels file exists, add it to the report command +if [ -f "${FIREWATCH_JIRA_ADDITIONAL_LABELS_FILE}" ]; then + report_command+=" --additional-labels-file=${FIREWATCH_JIRA_ADDITIONAL_LABELS_FILE}" +fi + eval "$report_command" diff --git a/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-ref.yaml b/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-ref.yaml index a3a7cc234b41..5257c8f0e030 100644 --- a/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-ref.yaml +++ b/ci-operator/step-registry/firewatch/report-issues/firewatch-report-issues-ref.yaml @@ -41,6 +41,9 @@ ref: - name: FIREWATCH_DEFAULT_JIRA_ADDITIONAL_LABELS default: "" documentation: The list of default Jira labels to be applied to issues where the "jira_additional_labels" list contains "!default". + - name: FIREWATCH_JIRA_ADDITIONAL_LABELS_FILE + default: "${SHARED_DIR}/firewatch-additional-labels" + documentation: The file path to the file containing additional labels to be applied to Jira issues. Each label should be separated with a new line. - name: FIREWATCH_DEFAULT_JIRA_ASSIGNEE default: "" documentation: The default value for the assignee of issues where the "jira_assignee" value is set to "!default".