ci: use CI_MERGE_REQUEST_SOURCE_BRANCH in mr pipelines

This commit is contained in:
Fu Hanxi 2021-03-01 15:20:34 +08:00
parent 48cda62bcf
commit 941574dc2f

View File

@ -29,7 +29,7 @@ check_pre_commit_MR:
- .check_pre_commit_template - .check_pre_commit_template
- .rules:dev - .rules:dev
script: 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: check_version:
# Don't run this for feature/bugfix branches, so that it is possible to modify # Don't run this for feature/bugfix branches, so that it is possible to modify