From d1712af538a664ed7e7d21f76172ba51feb06f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Mikul=C3=A1=C5=A1ek?= Date: Thu, 14 Nov 2024 13:31:52 +0100 Subject: [PATCH] fix(commit-lint): do not check risk also for extimage updates JIRA: STL-894 --- .github/workflows/commit-lint-shell.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit-lint-shell.yaml b/.github/workflows/commit-lint-shell.yaml index 84e3e81..74be26e 100644 --- a/.github/workflows/commit-lint-shell.yaml +++ b/.github/workflows/commit-lint-shell.yaml @@ -45,7 +45,7 @@ jobs: REPO_NAME="${{ github.repository }}" if [[ "$REPO_NAME" =~ ^(.*/)?(gdc-nas|gdc-ui|gooddata-ui-sdk|gdc-panther)$ ]]; then - if [[ ! "$COMMIT_SUBJECT" =~ ^chore\(deps\): ]]; then + if [[ ! "$COMMIT_SUBJECT" =~ ^chore.*:[[:space:]]update ]]; then TRAILERS=$(git show -s --format=%B "$COMMIT_HASH" | git interpret-trailers --parse) if ! echo "$TRAILERS" | grep -iqE '^risk:\s*(nonprod|low|high)'; then COMMIT_VIOLATIONS+=":x: does not contain a valid risk trailer\n"