Commit 656f355
authored
fix: use remap instead of exclude for issue comment anchors (#58)
## Summary
Fixes the lint failure in #41 (release-please PR).
CLI `--exclude` overrides (rather than merges with) config file excludes
in lychee. The `--exclude` added in #56 for `#issuecomment-` URLs caused
the config file's `exclude` patterns (like the `compare/` URL exclusion)
to be ignored.
Fix: switch to `--remap` which strips the `#issuecomment-` fragment
while still checking the issue/PR page itself.
## Test plan
- [ ] CI passes (the release-please PR #41 should also pass after this
merges)
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>1 parent 9cbe309 commit 656f355
3 files changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
0 commit comments