summaryrefslogtreecommitdiff
path: root/lefthook.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-28 18:08:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-28 18:08:39 +0000
commite4632f4c63eae7ec36243d11b23d69b4fd880830 (patch)
tree3a8861404c8bab446f55f2f3bf523365176a8f9c /lefthook.yml
parent59469a17821eda8a34d08b1e46584e902d1e963a (diff)
downloadgitlab-ce-e4632f4c63eae7ec36243d11b23d69b4fd880830.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lefthook.yml')
-rw-r--r--lefthook.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lefthook.yml b/lefthook.yml
index daab6e7f4a0..81ff2ecdada 100644
--- a/lefthook.yml
+++ b/lefthook.yml
@@ -38,3 +38,9 @@ pre-push:
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob: 'doc/*.md'
run: if command -v vale 2> /dev/null; then vale --config .vale.ini --minAlertLevel error {files}; else echo "Vale not found. Install Vale"; fi
+ gettext:
+ skip: true # This is disabled by default. You can enable this check by adding skip: false in lefhook-local.yml https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md#skipping-commands
+ tags: backend frontend view haml
+ files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD | while read file;do git diff --unified=1 $(git merge-base origin/master HEAD)..HEAD $file | grep -Fqe '_(' && echo $file;done; true
+ glob: "*.{haml,rb,js,vue}"
+ run: bin/rake gettext:updated_check