Skip to content

Commit 941227e

Browse files
authored
pre-commit add chmod 644 manual hook for Markdown (#11651)
1 parent e7b8326 commit 941227e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/linter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ jobs:
4545
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
4646
- name: Run pre-commit
4747
run: pre-commit run --all-files
48+
- name: Run manual pre-commit hooks
49+
run: pre-commit run --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ repos:
117117
args: [--config=.github/linters/.markdown-lint.yml]
118118
types: [markdown]
119119
files: \.(md|mdown|markdown)$
120+
- repo: https://github.com/Lucas-C/pre-commit-hooks
121+
rev: v1.5.5
122+
hooks:
123+
- id: chmod
124+
name: set file permissions
125+
args: ['644']
126+
files: \.md$
127+
stages: [manual]
120128
- repo: https://github.com/adrienverge/yamllint
121129
rev: v1.37.1
122130
hooks:

0 commit comments

Comments
 (0)