pre-commit add chmod 644 manual hook for Markdown (#11651)

This commit is contained in:
John Bampton 2025-10-24 20:35:52 +10:00 committed by GitHub
parent e7b8326058
commit 941227ec8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -45,3 +45,5 @@ jobs:
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --all-files
- name: Run manual pre-commit hooks
run: pre-commit run --all-files --hook-stage manual

View File

@ -117,6 +117,14 @@ repos:
args: [--config=.github/linters/.markdown-lint.yml]
types: [markdown]
files: \.(md|mdown|markdown)$
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: chmod
name: set file permissions
args: ['644']
files: \.md$
stages: [manual]
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks: