This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git


The following commit(s) were added to refs/heads/main by this push:
     new 6d2d3a7fa pre-commit: add markdown-link-check (#2519)
6d2d3a7fa is described below

commit 6d2d3a7faa550b7370bc987c1c9a70c1361e9bbc
Author: John Bampton <[email protected]>
AuthorDate: Mon Feb 9 03:49:55 2026 +1000

    pre-commit: add markdown-link-check (#2519)
---
 .github/linters/mlc_config.json | 7 +++++++
 .pre-commit-config.yaml         | 9 +++++++++
 2 files changed, 16 insertions(+)

diff --git a/.github/linters/mlc_config.json b/.github/linters/mlc_config.json
new file mode 100644
index 000000000..cda41ebb9
--- /dev/null
+++ b/.github/linters/mlc_config.json
@@ -0,0 +1,7 @@
+{
+  "ignorePatterns": [
+    {
+      "pattern": "^https://github.com/YOUR_ACCOUNT/shiro";
+    }
+  ]
+}
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 859acb7d6..438373100 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -107,6 +107,15 @@ repos:
     hooks:
       - id: actionlint
         description: actionlint is a static checker for GitHub Actions 
workflow files
+  - repo: https://github.com/tcort/markdown-link-check
+    rev: v3.14.2
+    hooks:
+      - id: markdown-link-check
+        name: run markdown-link-check
+        description: checks all of the hyperlinks in a Markdown text to 
determine if they are alive or dead
+        args: [--config=.github/linters/mlc_config.json, -q]
+        types: [markdown]
+        files: \.md$
   - repo: https://github.com/oxipng/oxipng
     rev: v10.1.0
     hooks:

Reply via email to