Skip to content

Address PR #1 review, add Renovate auto-update docs#3

Merged
zeitlinger merged 4 commits intomainfrom
fix/address-pr1-review-comments
Feb 14, 2026
Merged

Address PR #1 review, add Renovate auto-update docs#3
zeitlinger merged 4 commits intomainfrom
fix/address-pr1-review-comments

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • Address review comments from PR Initial commit #1
  • Fix AUTOFIX handling when renovate-tracked-deps.json doesn't exist yet (creates the file instead of crashing)
  • Remove duplicate FIX_JSONC_PRETTIER from super-linter env
  • Add CHANGELOG entry for v0.1.0
  • Document the Renovate custom manager rule for automatic flint version updates in consuming repos

Test plan

  • lint:renovate-deps with AUTOFIX=true works when renovate-tracked-deps.json doesn't exist
  • lint:renovate-deps without AUTOFIX fails gracefully when file is missing
  • README Renovate section has correct regex that matches raw.githubusercontent.com URLs

- Remove FIX_JSONC_PRETTIER flag from super-linter.env to fix inconsistency with disabled VALIDATE_JSON_PRETTIER
- Add error handling in renovate-deps.py for missing renovate-tracked-deps.json file
- Split long EXCLUDED_MANAGERS line in renovate-deps.py into multiple lines for readability
- Update CHANGELOG.md to document v0.1.0 release
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
- Add logic to create renovate-tracked-deps.json when AUTOFIX=true and file doesn't exist
- Keep EXCLUDED_MANAGERS on single line per Ruff formatter preference, with linter suppressions
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Copilot AI review requested due to automatic review settings February 14, 2026 16:49
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 addresses review feedback from PR #1 and adds documentation for automatic Renovate version updates. It fixes a bug in the renovate-deps linter where it would crash if the tracked-deps file doesn't exist, removes a duplicate configuration entry from super-linter settings, and documents how consuming repositories can configure Renovate to automatically update their pinned flint versions.

Changes:

  • Fixed AUTOFIX handling in renovate-deps linter to create the tracking file instead of crashing when it doesn't exist
  • Removed duplicate FIX_JSONC_PRETTIER from super-linter configuration (conflicts with Biome-based JSON formatting)
  • Added CHANGELOG entry for v0.1.0 release
  • Documented Renovate custom manager regex for automatic flint version updates in consuming repos

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tasks/lint/renovate-deps.py Added file existence check with autofix support to handle first-time file creation
README.md Added documentation section explaining how to configure Renovate to auto-update flint versions via custom regex manager
CHANGELOG.md Added v0.1.0 release entry with date and version comparison links
.github/config/super-linter.env Removed duplicate FIX_JSONC_PRETTIER that conflicts with Biome-based JSON formatting strategy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +118 to +120
with open(COMMITTED, "w", encoding="utf-8") as f:
json.dump(generated_data, f, indent=2)
f.write("\n")
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

Consider adding directory creation to handle edge cases where .github doesn't exist yet. You can use COMMITTED.parent.mkdir(parents=True, exist_ok=True) before opening the file for writing. While .github should typically exist in repos using this tool, being defensive can prevent unexpected failures.

Copilot uses AI. Check for mistakes.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger merged commit 0f2609f into main Feb 14, 2026
7 checks passed
@zeitlinger zeitlinger deleted the fix/address-pr1-review-comments branch February 16, 2026 06:01
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