From 09ecb25990a1b9b6a33ffd0b6920591705eaf7fe Mon Sep 17 00:00:00 2001 From: jo Date: Sun, 12 Feb 2023 15:55:32 +0100 Subject: [PATCH] ci: don't fetch branch in require_changelog Part-of: --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c50030344..6fffc68df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -154,7 +154,6 @@ find_broken_links: require_changelog: stage: lint - needs: [] rules: # Don't run on merge request that mention NOCHANGELOG or renovate bot commits - if: > @@ -165,8 +164,7 @@ require_changelog: image: python:3.11 script: - - git fetch origin "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" - - git diff --name-only FETCH_HEAD | grep "changes/changelog.d/*" + - git diff --name-only $CI_MERGE_REQUEST_DIFF_BASE_SHA..$CI_COMMIT_SHA | grep "changes/changelog.d/*" pre-commit: extends: [.pre-commit]