From 9115e6f1ed3a51ce52133d04f7346a161990b440 Mon Sep 17 00:00:00 2001 From: deependujha Date: Fri, 25 Sep 2026 16:02:14 +0530 Subject: [PATCH 1/4] ci: add markdown link checker workflow and configuration --- .github/markdown-links-config.json | 30 ++++++++++++++++++++++++++++++ .github/workflows/ci-checks.yml | 15 +++++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .github/markdown-links-config.json diff --git a/.github/markdown-links-config.json b/.github/markdown-links-config.json new file mode 100644 index 0000000..4623923 --- /dev/null +++ b/.github/markdown-links-config.json @@ -0,0 +1,30 @@ +{ + "ignorePatterns": [ + { + "pattern": "^#" + }, + { + "pattern": "^https://github.com/Lightning-AI/LitModels/pull/" + }, + { + "pattern": "^https://codecov.io/gh/Lightning-AI/LitModels/graph/badge.svg" + } + ], + "httpHeaders": [ + { + "urls": [ + "https://github.com/", + "https://guides.github.com/", + "https://help.github.com/", + "https://docs.github.com/" + ], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "20s" +} diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 0f48a9b..6280521 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -37,7 +37,14 @@ jobs: "python-version": ["3.10", "3.12"] } -# check-docs: -# uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main -# with: -# requirements-file: "_requirements/_docs.txt" + # check-docs: + # uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main + # with: + # requirements-file: "_requirements/_docs.txt" + + check-md-links: + uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.3 + with: + config-file: ".github/markdown-links-config.json" + base-branch: "main" + force-check-all: "yes" From 76d6d70298b8984d3f41d8847a1ac976f4b547d2 Mon Sep 17 00:00:00 2001 From: deependujha Date: Fri, 25 Sep 2026 16:15:52 +0530 Subject: [PATCH 2/4] update --- .github/workflows/ci-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index 6280521..b87a818 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -43,7 +43,7 @@ jobs: # requirements-file: "_requirements/_docs.txt" check-md-links: - uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.3 + uses: deependujha/utilities/tree/patch-1/.github/workflows/check-md-links.yml with: config-file: ".github/markdown-links-config.json" base-branch: "main" From a456f2d93dfe13e5f90982a7dc3773c907b45c1f Mon Sep 17 00:00:00 2001 From: Deependu Date: Sun, 27 Sep 2026 13:38:33 +0530 Subject: [PATCH 3/4] Apply suggestion from @deependujha --- .github/markdown-links-config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/markdown-links-config.json b/.github/markdown-links-config.json index 4623923..69417e0 100644 --- a/.github/markdown-links-config.json +++ b/.github/markdown-links-config.json @@ -23,7 +23,7 @@ } } ], - "timeout": "20s", + "timeout": "25s", "retryOn429": true, "retryCount": 5, "fallbackRetryDelay": "20s" From 0cb051b255c8974313ffef3bd9769f45a44cad01 Mon Sep 17 00:00:00 2001 From: Deependu Date: Sun, 27 Sep 2026 13:51:24 +0530 Subject: [PATCH 4/4] Apply suggestion from @deependujha --- .github/workflows/ci-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-checks.yml b/.github/workflows/ci-checks.yml index b87a818..6280521 100644 --- a/.github/workflows/ci-checks.yml +++ b/.github/workflows/ci-checks.yml @@ -43,7 +43,7 @@ jobs: # requirements-file: "_requirements/_docs.txt" check-md-links: - uses: deependujha/utilities/tree/patch-1/.github/workflows/check-md-links.yml + uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@86fe1b20b4609835ba9e8c8739cd39707ba76868 # v0.15.3 with: config-file: ".github/markdown-links-config.json" base-branch: "main"