Add approveAll and reviewUnapproved tasks/goals to Gradle and Maven plugins#199
Merged
mkutz merged 3 commits into198-add-taskgoal-to-review-unapproved-files-across-the-projectfrom Feb 26, 2026
Conversation
Co-authored-by: mkutz <3702442+mkutz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add reviewUnapproved task to project plugins
Add Feb 20, 2026
approveAll and reviewUnapproved tasks to Gradle and Maven plugins
Co-authored-by: mkutz <3702442+mkutz@users.noreply.github.com>
Copilot
AI
changed the title
Add
Add Feb 20, 2026
approveAll and reviewUnapproved tasks to Gradle and Maven pluginsapproveAll and reviewUnapproved tasks/goals to Gradle and Maven plugins
mkutz
approved these changes
Feb 26, 2026
8ae8238
into
198-add-taskgoal-to-review-unapproved-files-across-the-project
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.
Adds two new build tool tasks/goals for dealing with unapproved files — those that have a
-received.*file alongside their inventory-tracked approved file.Core:
ApprovedFileInventoryNew inventory-based helpers (no filesystem walk):
findReceivedFiles()— for each approved path in the inventory, derives the corresponding received path and returns those that exist on diskapproveAll()— moves each such received file onto its approved counterpart (REPLACE_EXISTING)reviewUnapproved(FileReviewer)— applies the configured reviewer to each unapproved pair;--review-unapprovedCLI command usesConfiguration.configuration.defaultFileReviewer()Received path is derived from the approved path via
receivedPathFor(approvedPath)— useslastIndexOf("-approved.")to target only the last occurrence and an explicitendsWith("-approved")guard for extension-less files.Gradle plugin
Two new
JavaExectasks in theverificationgroup:approvejApproveAll--approve-allapprovejReviewUnapproved--review-unapprovedMaven plugin
Two new mojos mirroring the Gradle tasks:
approve-all--approve-allreview-unapproved--review-unapprovedThe reviewer used by
review-unapprovedis sourced fromdefaultFileReviewerScript/defaultFileReviewerinapprovej.properties; defaults tononeif unconfigured.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.