Consolidate link lint scripts and add README badges#5
Merged
zeitlinger merged 6 commits intomainfrom Feb 16, 2026
Merged
Conversation
Merge links.sh, local-links.sh, and links-in-modified-files.sh into one script that checks local links in modified files by default. Use --all-files and --include-remote flags to widen scope. This reduces duplication and gives consumers a single task to configure. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Add --autofix as a CLI flag alongside the existing AUTOFIX env var for all three lint scripts. The env var remains for propagation through the fix meta-task dependency chain; the flag makes it discoverable for individual runs. Reframe README intro and usage to make clear this is a toolbox of independent tasks — adopt whichever you need. Reorganize per-repo config section by task. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
…ility The flag was confusing as it suggested functionality that doesn't exist. The AUTOFIX env var (used by the fix meta-task) is still silently ignored. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
…links.sh Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates three separate link linting scripts into a single links.sh with configurable flags, adds --autofix flag support to super-linter.sh and renovate-deps.py, and enhances the README with a logo and CI/release badges.
Changes:
- Consolidated
links.sh,local-links.sh, andlinks-in-modified-files.shinto a singlelinks.shwith--all-files,--include-remote,--base, and--headflags - Added
--autofixflag tosuper-linter.shandrenovate-deps.py(in addition to existingAUTOFIXenv var support) - Added logo image and CI/release badges to README header
- Updated documentation across README.md and CLAUDE.md to reflect the consolidated script approach
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tasks/lint/super-linter.sh | Added --autofix flag support that sets AUTOFIX=true when enabled |
| tasks/lint/renovate-deps.py | Added --autofix flag support and updated autofix detection logic |
| tasks/lint/local-links.sh | Removed - functionality consolidated into links.sh |
| tasks/lint/links.sh | Consolidated script with flags for all-files, include-remote, and base/head refs |
| tasks/lint/links-in-modified-files.sh | Removed - functionality consolidated into links.sh |
| mise.toml | Removed references to deleted lint tasks, updated depends list |
| README.md | Added logo and badges, updated documentation for consolidated links task and autofix flags |
| CLAUDE.md | Updated to document consolidated links.sh script and autofix behavior |
| .github/workflows/lint.yml | Updated comment to reference lint:links instead of lint:links-in-modified-files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Default now runs two checks (all links in modified files + local links in all files) for better coverage. Use --full for a single comprehensive run of all links in all files. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
This was referenced Apr 16, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
links.sh,local-links.sh,links-in-modified-files.sh) into a singlelinks.shwith flags (--all-files,--include-remote,--modified-only)--autofixflag tosuper-linter.shandrenovate-deps.py; remove misleading--autofixfromlinks.shsince lychee has no autofix capabilityTest plan
mise run lint:linksworks with default (modified files, local only)mise run lint:links --all-fileschecks all filesmise run lint:links --include-remotechecks remote linksmise run fixpropagatesAUTOFIX=truewithout errors onlinks.sh