Skip to content

feat: create delete mode and refactor renovate.json#171

Merged
trueberryless merged 5 commits intomainfrom
feature/renovate-with-npm-updates
Aug 25, 2025
Merged

feat: create delete mode and refactor renovate.json#171
trueberryless merged 5 commits intomainfrom
feature/renovate-with-npm-updates

Conversation

@trueberryless
Copy link
Member

@trueberryless trueberryless commented Aug 25, 2025

Summary by CodeRabbit

  • New Features
    • Template sync now supports deleting obsolete files managed by the templates system.
  • Chores
    • Migrated Renovate configuration from JSON5 to JSON, with updated rules to group non‑major npm updates and separate majors.
    • Updated repositories to reference the new Renovate configuration and remove legacy references.
    • Removed the deprecated Renovate configuration.

@changeset-bot
Copy link

changeset-bot bot commented Aug 25, 2025

🦋 Changeset detected

Latest commit: 24e5635

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
template-files Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 25, 2025

Warning

Rate limit exceeded

@trueberryless has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 13 minutes and 34 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 394b2e6 and 24e5635.

📒 Files selected for processing (3)
  • .changeset/curly-zoos-exist.md (1 hunks)
  • .changeset/tiny-insects-dream.md (1 hunks)
  • template-files/.github/renovate.json (1 hunks)

Walkthrough

Renovate configuration is migrated from renovate.json5 to renovate.json. A new template file is added, the old one is removed, and repos.json mappings are updated to point to the new file with delete directives for the old. sync_templates.sh gains a special delete operation. Two changeset notes document these updates.

Changes

Cohort / File(s) Summary
Changeset notes
.\changeset/curly-zoos-exist.md, .\changeset/tiny-insects-dream.md
Add changeset entries: introduce special delete handling note and document rename from renovate.json5 to renovate.json including npm updates scope.
Renovate template migration
template-files/.github/renovate.json, template-files/.github/renovate.json5
Add new Renovate JSON config with npm grouping rules and actions grouping; remove legacy JSON5 config.
Repo mappings update
repos.json
Update file mappings to use template-files/.github/renovate.json targeting .github/renovate.json; add separate entries with special: delete for .github/renovate.json5.
Sync script special handling
sync_templates.sh
Implement support for special='delete' to remove destination files; includes two equivalent elif branches handling delete.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

A bunny with a changelog grin,
Hops from .json5 to .json in.
Snip! goes delete, old files away—
New rules for npm lead the way.
Repos mapped, scripts now neat,
Thump-thump—migration is complete! 🐰✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/renovate-with-npm-updates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the 📝 changeset Contains changeset files label Aug 25, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
sync_templates.sh (2)

257-261: Use git add -A so deletions are staged; otherwise delete operations won’t be committed

git add . won’t reliably stage file deletions; use git add -A or git add -u. This is critical for your new delete mode to result in an actual commit.

-git add .
+git add -A

33-54: Nit: avoid fetching/validating src for non-content ops in the future

With the early “delete” short‑circuit in place (see above), we can skip URL downloads and local file existence checks entirely for such ops. This saves a network roundtrip and avoids false negatives when the source path doesn’t exist.

repos.json (1)

2278-2283: Copy/paste bug: repositoryName is incorrect for “marketing”

repositoryName under the marketing block is set to “truzzles”. This will render incorrect text in templates/workflows and could break deployments.

-          "props": {
-            "repositoryName": "truzzles"
-          }
+          "props": {
+            "repositoryName": "marketing"
+          }
📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 775f0bf and 394b2e6.

📒 Files selected for processing (6)
  • .changeset/curly-zoos-exist.md (1 hunks)
  • .changeset/tiny-insects-dream.md (1 hunks)
  • repos.json (28 hunks)
  • sync_templates.sh (4 hunks)
  • template-files/.github/renovate.json (1 hunks)
  • template-files/.github/renovate.json5 (0 hunks)
💤 Files with no reviewable changes (1)
  • template-files/.github/renovate.json5
🧰 Additional context used
🪛 LanguageTool
.changeset/tiny-insects-dream.md

[grammar] ~5-~5: Use prepositions correctly
Context: ...iles": minor --- Rename renovate.json5 into renovate.json and adapt it to include n...

(QB_NEW_EN_OTHER_ERROR_IDS_7)


[grammar] ~5-~5: There might be a mistake here.
Context: ...nclude npm updates (major and non-major)

(QB_NEW_EN_OTHER)

.changeset/curly-zoos-exist.md

[grammar] ~5-~5: There might be a mistake here.
Context: ...cial file treatment: delete (path still neede nonetheless, altough useless)

(QB_NEW_EN_OTHER)


[grammar] ~5-~5: Ensure spelling is correct
Context: ...: delete (path still neede nonetheless, altough useless)

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~5-~5: There might be a mistake here.
Context: ...till neede nonetheless, altough useless)

(QB_NEW_EN_OTHER)

🪛 markdownlint-cli2 (0.17.2)
.changeset/tiny-insects-dream.md

5-5: First line in a file should be a top-level heading

(MD041, first-line-heading, first-line-h1)

.changeset/curly-zoos-exist.md

5-5: First line in a file should be a top-level heading

(MD041, first-line-heading, first-line-h1)

🔇 Additional comments (6)
.changeset/tiny-insects-dream.md (1)

5-5: OK to ignore MD041 for .changeset files

markdownlint’s “first-line heading” rule (MD041) isn’t typically applicable to Changesets entries. No action needed unless your pipeline enforces MD041 on this folder. If it does, consider excluding .changeset/** in your linter config.

.changeset/curly-zoos-exist.md (1)

5-5: MD041 note (informational)

Same as the other changeset: safe to ignore the first-line heading warning unless you enforce it for .changeset/**.

template-files/.github/renovate.json (2)

33-37: pnpm packageManager rule looks good

Disabling updates to the packageManager field via a targeted rule is correct. Renovate recognizes matchDepTypes: ["packageManager"] on npm manager.


3-10: Replace invalid Renovate helper preset

The preset "helpers:pinGitHubActionDigestsToSemver" does not exist in Renovate’s catalog. To pin GitHub Action digests while respecting semver-style tags, use the built-in helper:

• File: template-files/.github/renovate.json
• Update the extends array entry:

   "extends": [
     ":disableDependencyDashboard",
     ":semanticPrefixFixDepsChoreOthers",
     ":ignoreModulesAndTests",
     "workarounds:all",
-    "helpers:pinGitHubActionDigestsToSemver",
+    "helpers:pinGitHubActionDigests",
     "docker:disable"
   ],

This change ensures Renovate recognizes the helper and correctly pins action digests.

Likely an incorrect or invalid review comment.

repos.json (2)

30-36: Renovate migration mapping looks correct

Adding .github/renovate.json and a separate special: "delete" mapping for .github/renovate.json5 is the right pattern. This repeats consistently across repos.


30-36: Sanity check passed: all .github/renovate.json5 mappings are marked for deletion as expected.
No further action required.

trueberryless and others added 3 commits August 25, 2025 21:32
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@trueberryless trueberryless merged commit 012d5db into main Aug 25, 2025
4 checks passed
@trueberryless trueberryless deleted the feature/renovate-with-npm-updates branch August 25, 2025 19:40
This was referenced Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📝 changeset Contains changeset files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant