David Eichmann pushed to branch wip/davide/no_changelog at Glasgow Haskell Compiler / GHC Commits: df1f3b8c by David Eichmann at 2026-06-12T10:49:46+01:00 CI: lint-changelog checks for no-changelog label in script instead of rules - - - - - 1 changed file: - .gitlab-ci.yml Changes: ===================================== .gitlab-ci.yml ===================================== @@ -254,6 +254,10 @@ lint-changelog: variables: BUILD_FLAVOUR: default CHANGELOG_EXPECT_MR: "$CI_MERGE_REQUEST_IID" + before_script: + # Cencel the job if there is s no-changelog label + - | + [[ ",${CI_MERGE_REQUEST_LABELS}," == *",no-changelog,"* ]] && exit 0 script: # Check that the MR adds at least one changelog entry - git fetch "$CI_MERGE_REQUEST_PROJECT_URL" "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" @@ -274,8 +278,6 @@ lint-changelog: rules: - if: '$CI_MERGE_REQUEST_LABELS =~ /.*marge_bot_batch_merge_job.*/' when: never - - if: '$CI_MERGE_REQUEST_LABELS =~ /.*no-changelog.*/' - when: never - if: $CI_MERGE_REQUEST_ID - *drafts-can-fail-lint View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/df1f3b8c76ee9bc0f8f1a6bd6a0c78f8... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/df1f3b8c76ee9bc0f8f1a6bd6a0c78f8... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
David Eichmann (@DavidEichmann)