From 941574dc2f513dabea802b697df8583f17baaa33 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Mon, 1 Mar 2021 15:20:34 +0800 Subject: [PATCH] ci: use CI_MERGE_REQUEST_SOURCE_BRANCH in mr pipelines --- .gitlab/ci/pre_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/ci/pre_check.yml b/.gitlab/ci/pre_check.yml index f02492dcda..403285aece 100644 --- a/.gitlab/ci/pre_check.yml +++ b/.gitlab/ci/pre_check.yml @@ -29,7 +29,7 @@ check_pre_commit_MR: - .check_pre_commit_template - .rules:dev script: - - python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_COMMIT_BRANCH} | xargs pre-commit run --files + - python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} | xargs pre-commit run --files check_version: # Don't run this for feature/bugfix branches, so that it is possible to modify