Skip to content

Conversation

apricote
Copy link
Owner

This change reverses the responsibility for which files the updaters are run on. Now each updater can specify the list of files and wether the files should be created when they do not exist yet. This simplifies the handling of each update in releaserpleaser.go, as we can just iterate over all updaters and call it for each file of that updater.

Also update the flags to allow users to easily define which updaters should run.

Follow up to #213
Closes #118

@apricote apricote self-assigned this Aug 23, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 23, 2025

Codecov Report

❌ Patch coverage is 64.61538% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.56%. Comparing base (1e9e0aa) to head (0cc22af).

Files with missing lines Patch % Lines
cmd/rp/cmd/run.go 55.55% 12 Missing ⚠️
releaserpleaser.go 0.00% 7 Missing ⚠️
internal/git/git.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
+ Coverage   25.32%   26.56%   +1.23%     
==========================================
  Files          23       23              
  Lines        1828     1856      +28     
==========================================
+ Hits          463      493      +30     
+ Misses       1337     1335       -2     
  Partials       28       28              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This change reverses the responsibility for which files the updaters are
run on. Now each updater can specify the list of files and wether the
files should be created when they do not exist yet. This simplifies the
handling of each update in releaserpleaser.go, as we can just iterate
over all updaters and call it for each file of that updater.

Also update the flags to allow users to easily define which updaters
should run.
@apricote apricote merged commit f1aa1a2 into main Aug 23, 2025
3 checks passed
@apricote apricote deleted the updaters-flag branch August 23, 2025 20:14
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.

feat: Support updating package.json version
2 participants