summaryrefslogtreecommitdiff
path: root/lefthook.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-01 15:08:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-01 15:08:30 +0000
commita0fdcfcdd514c2af98f18cadfa75f8a6a85b4d2c (patch)
treeecba106fd4d1426cc2109a6ba3da091be2de1f87 /lefthook.yml
parent2828f81d2a41f46b89e13dc057b982f27aeee547 (diff)
downloadgitlab-ce-a0fdcfcdd514c2af98f18cadfa75f8a6a85b4d2c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lefthook.yml')
-rw-r--r--lefthook.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/lefthook.yml b/lefthook.yml
index 161ce0b5155..8a3a0d8c2cb 100644
--- a/lefthook.yml
+++ b/lefthook.yml
@@ -59,6 +59,11 @@ pre-push:
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob: 'doc/*.md'
run: scripts/lint-docs-metadata.sh {files}
+ docs-trailing_spaces: # Not enforced in CI/CD pipelines, but reduces the amount of required cleanup: https://gitlab.com/gitlab-org/technical-writing/-/blob/main/.gitlab/issue_templates/tw-monthly-tasks.md#remote-tasks
+ tags: documentation style
+ files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
+ glob: 'doc/*.md'
+ run: yarn markdownlint:no-trailing-spaces {files}
docs-deprecations:
tags: documentation
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
@@ -67,5 +72,5 @@ pre-push:
docs-removals:
tags: documentation
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
- glob: 'data/removals/**/*.yml'
+ glob: 'data/removals/*.yml'
run: echo "Changes to removals files detected. Checking removals..\n"; bundle exec rake gitlab:docs:check_removals