Skip to content
Snippets Groups Projects
Commit cb8ad3b8 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Fetch MR source commit on pre-commit job.

parent 99d1dd1c
No related branches found
No related tags found
1 merge request!135[ci] Fetch MR source commit on pre-commit job.
Checking pipeline status
...@@ -35,6 +35,7 @@ pre-commit: ...@@ -35,6 +35,7 @@ pre-commit:
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID
needs: [] needs: []
script: script:
- git fetch origin ${CI_MERGE_REQUEST_DIFF_BASE_SHA}
- pre-commit run --from-ref ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to-ref HEAD - pre-commit run --from-ref ${CI_MERGE_REQUEST_DIFF_BASE_SHA} --to-ref HEAD
build: build:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment