Эх сурвалжийг харах

ci: use CI_MERGE_REQUEST_SOURCE_BRANCH in mr pipelines

Fu Hanxi 4 жил өмнө
parent
commit
941574dc2f

+ 1 - 1
.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