From a2ae6810201d869f5e439d6eaedebe447c92c22d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Jun 2025 01:26:34 +0000 Subject: [PATCH 1/3] Initial plan From 2cdee3d4c9a5886a42f42124308c46c651b6c2d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Jun 2025 01:35:08 +0000 Subject: [PATCH 2/3] Create .lychee.toml and update workflow to use config file Co-authored-by: trask <218610+trask@users.noreply.github.com> --- .github/workflows/reusable-markdown-link-check.yml | 6 +----- .lychee.toml | 11 +++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .lychee.toml diff --git a/.github/workflows/reusable-markdown-link-check.yml b/.github/workflows/reusable-markdown-link-check.yml index 3120678ce..2d8b86577 100644 --- a/.github/workflows/reusable-markdown-link-check.yml +++ b/.github/workflows/reusable-markdown-link-check.yml @@ -14,10 +14,6 @@ jobs: - uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1 with: - # excluding links to pull requests and issues is done for performance args: > - --include-fragments - --exclude "^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\\d+$" - --max-retries 6 - --max-concurrency 1 + --config ./.lychee.toml . diff --git a/.lychee.toml b/.lychee.toml new file mode 100644 index 000000000..8a060e45f --- /dev/null +++ b/.lychee.toml @@ -0,0 +1,11 @@ +# Check link anchors +include_fragments = true + +# Retry configuration +max_retries = 6 +max_concurrency = 1 + +# excluding links to pull requests and issues is done for performance +exclude = [ + '^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\\d+$', +] \ No newline at end of file From 0e2148e39816411ad1bea49e6e75dabedbbce14e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Jun 2025 01:36:07 +0000 Subject: [PATCH 3/3] Fix regex pattern in .lychee.toml for proper exclusion Co-authored-by: trask <218610+trask@users.noreply.github.com> --- .lychee.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.lychee.toml b/.lychee.toml index 8a060e45f..5ebe04531 100644 --- a/.lychee.toml +++ b/.lychee.toml @@ -7,5 +7,5 @@ max_concurrency = 1 # excluding links to pull requests and issues is done for performance exclude = [ - '^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\\d+$', + '^https://github\.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\d+$', ] \ No newline at end of file