We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 607ec87 commit 17c5869Copy full SHA for 17c5869
.github/workflows/format.yaml
@@ -25,6 +25,6 @@ jobs:
25
- name: Install and run pre-commit
26
run: |
27
python -m pip install pre-commit
28
- git fetch origin
29
- pre-commit run --show-diff-on-failure --color=always --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref ${{ github.event.pull_request.head.sha }}
+ git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
+ pre-commit run --show-diff-on-failure --color=always --from-ref origin/"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" --to-ref "$CI_COMMIT_SHA"
30
id: precommit
0 commit comments