Skip to content
Snippets Groups Projects
Commit c4d550a2 authored by Robert Rosca's avatar Robert Rosca
Browse files

Check if MR commit SHA is set

parent aceded4b
No related branches found
No related tags found
2 merge requests!433Fix/pre commit whitespace,!417Feat/pre commit checks
...@@ -23,7 +23,7 @@ repos: ...@@ -23,7 +23,7 @@ repos:
rev: 3.8.4 rev: 3.8.4
hooks: hooks:
- id: flake8 - id: flake8
entry: bash -c 'git diff $CI_MERGE_REQUEST_TARGET_BRANCH_SHA | flake8 --diff' -- entry: bash -c 'if [ -z ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} ]; then (flake8 "$@"); else (git diff $CI_MERGE_REQUEST_TARGET_BRANCH_SHA | flake8 --diff); fi' --
- repo: https://github.com/myint/rstcheck - repo: https://github.com/myint/rstcheck
rev: 3f92957478422df87bd730abde66f089cc1ee19b # commit where pre-commit support was added rev: 3f92957478422df87bd730abde66f089cc1ee19b # commit where pre-commit support was added
hooks: hooks:
......
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