Skip to content

Consolidate link lint scripts and add README badges#5

Merged
zeitlinger merged 6 commits intomainfrom
single-link-lint
Feb 16, 2026
Merged

Consolidate link lint scripts and add README badges#5
zeitlinger merged 6 commits intomainfrom
single-link-lint

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • Consolidate three separate link lint scripts (links.sh, local-links.sh, links-in-modified-files.sh) into a single links.sh with flags (--all-files, --include-remote, --modified-only)
  • Add --autofix flag to super-linter.sh and renovate-deps.py; remove misleading --autofix from links.sh since lychee has no autofix capability
  • Add logo and CI/release badges to README

Test plan

  • Verify mise run lint:links works with default (modified files, local only)
  • Verify mise run lint:links --all-files checks all files
  • Verify mise run lint:links --include-remote checks remote links
  • Verify mise run fix propagates AUTOFIX=true without errors on links.sh
  • Verify badges render correctly on GitHub

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>
Copilot AI review requested due to automatic review settings February 16, 2026 08:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and links-in-modified-files.sh into a single links.sh with --all-files, --include-remote, --base, and --head flags
  • Added --autofix flag to super-linter.sh and renovate-deps.py (in addition to existing AUTOFIX env 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.

Comment thread tasks/lint/renovate-deps.py
Comment thread CLAUDE.md Outdated
Comment thread tasks/lint/links.sh
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>
@zeitlinger zeitlinger merged commit 0ed7a4b into main Feb 16, 2026
7 checks passed
@zeitlinger zeitlinger deleted the single-link-lint branch February 16, 2026 09:09
This was referenced Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants