Update .gitlab-ci.yml to reevaluate CI_MERGE_REQUEST_TITLE if NOCHANGELOG is added in the title (by rerunning the pipeline)

This commit is contained in:
petitminion 2025-05-13 13:14:37 +00:00
parent e5c76cb8a4
commit 41da357066
1 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,9 @@ workflow:
) )
# Run for merge requests from any repo or branches # Run for merge requests from any repo or branches
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
# run if NOCHANGELOG is added in the title
- if: $CI_MERGE_REQUEST_TITLE =~ /NOCHANGELOG/
stages: stages:
- review - review
@ -166,7 +169,7 @@ require_changelog:
# Don't run on merge request that mention NOCHANGELOG or renovate bot commits # Don't run on merge request that mention NOCHANGELOG or renovate bot commits
- if: > - if: >
$CI_MERGE_REQUEST_TITLE =~ /NOCHANGELOG/ || $CI_MERGE_REQUEST_TITLE =~ /NOCHANGELOG/ ||
$CI_COMMIT_AUTHOR == "Renovate Bot <bot@dev.funkwhale.audio>" $CI_COMMIT_AUTHOR == "RenovateBot <bot@dev.funkwhale.audio>"
when: never when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"