This is an automated email from the ASF dual-hosted git repository.
harikrishna pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 941227ec8cd pre-commit add `chmod 644` manual hook for Markdown
(#11651)
941227ec8cd is described below
commit 941227ec8cdf967e0ec4aa8ae0b8053e91ae7ace
Author: John Bampton <[email protected]>
AuthorDate: Fri Oct 24 20:35:52 2025 +1000
pre-commit add `chmod 644` manual hook for Markdown (#11651)
---
.github/workflows/linter.yml | 2 ++
.pre-commit-config.yaml | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index e4c7d7efc84..6ff997412ff 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -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
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index edb4d4ee88b..e1a7db70220 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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: