mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
pre-commit add chmod 644 manual hook for Markdown (#11651)
This commit is contained in:
parent
e7b8326058
commit
941227ec8c
2
.github/workflows/linter.yml
vendored
2
.github/workflows/linter.yml
vendored
@ -45,3 +45,5 @@ jobs:
|
|||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Run pre-commit
|
- name: Run pre-commit
|
||||||
run: pre-commit run --all-files
|
run: pre-commit run --all-files
|
||||||
|
- name: Run manual pre-commit hooks
|
||||||
|
run: pre-commit run --all-files --hook-stage manual
|
||||||
|
|||||||
@ -117,6 +117,14 @@ repos:
|
|||||||
args: [--config=.github/linters/.markdown-lint.yml]
|
args: [--config=.github/linters/.markdown-lint.yml]
|
||||||
types: [markdown]
|
types: [markdown]
|
||||||
files: \.(md|mdown|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
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
rev: v1.37.1
|
rev: v1.37.1
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user