Commit e57b4f1
Exclude .lychee.toml from triggering code test workflows (#2882)
## Summary
Fixes the issue where PR #2876 (docs-only changes including
`.lychee.toml`) triggered all code test workflows.
**Root cause**: `.lychee.toml` is a docs-infrastructure config file (for
the markdown link checker) but it wasn't excluded from code test
workflows in two places:
1. **Workflow `paths-ignore`**: `.lychee.toml` doesn't match `**.md` or
`docs/**`, so all code workflows triggered
2. **`ci-changes-detector` script**: `.lychee.toml` hit the catch-all
`*` pattern, which set `UNCATEGORIZED_CHANGED=true` and ran the
**entire** test suite
**Fix**:
- Added `.lychee.toml` to `paths-ignore` in all 10 code test workflow
files so they don't trigger at all
- Added `.lychee.toml` to the documentation pattern in
`ci-changes-detector` so it's classified as docs-only (defense in depth)
The `check-markdown-links.yml` workflow already correctly includes
`.lychee.toml` in its `paths:` trigger — that's the only workflow that
should care about it.
## Test plan
- [ ] Verify this PR itself only triggers `detect-changes`,
`markdown-link-check`, and `claude-review` — not code tests
- [ ] Confirm `check-markdown-links.yml` still triggers when
`.lychee.toml` changes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: limited to CI trigger/changed-file classification logic,
with no runtime/app behavior changes; primary risk is inadvertently
skipping intended CI runs when `.lychee.toml` changes.
>
> **Overview**
> Prevents docs-infra changes to `.lychee.toml` from triggering the main
code test suite.
>
> Adds `.lychee.toml` to `paths-ignore` across code-related GitHub
Actions workflows (including benchmarks) and updates
`script/ci-changes-detector` to classify `.lychee.toml` as
documentation-only so it no longer falls into the catch-all “run
everything” path.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
869d5d4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Optimized CI workflows to treat `.lychee.toml` as a documentation-only
file, preventing unnecessary test suite triggers when only this
configuration file is modified.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4741e6a commit e57b4f1
11 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments