Skip to content

fix: better handle edge cases#3

Merged
MiniDigger merged 3 commits intomainfrom
edge-cases
Jul 13, 2025
Merged

fix: better handle edge cases#3
MiniDigger merged 3 commits intomainfrom
edge-cases

Conversation

@MiniDigger
Copy link
Copy Markdown
Member

  • if last build has no commits
  • if first build in a version

* if last build has no commits
* if first build in a version
@MiniDigger MiniDigger requested review from Copilot and kashike June 30, 2025 19:56
Copy link
Copy Markdown

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 improves edge case handling for builds and commit gathering while introducing a new version response model.

  • Adds a new VersionResponse record to model version data.
  • Refactors commit collection in PublishToFillTask to address edge cases for builds without commits and the first build in a version.
  • Updates error messages to include more detailed exception information.

Reviewed Changes

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

File Description
src/main/java/io/papermc/fill/model/response/v3/VersionResponse.java Introduces Java record classes for version responses.
src/main/java/io/papermc/fill/gradle/task/PublishToFillTask.java Refactors commit gathering logic and improves error handling with detailed messages.

Comment thread src/main/java/io/papermc/fill/gradle/task/PublishToFillTask.java Outdated
MiniDigger and others added 2 commits June 30, 2025 21:57
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MiniDigger MiniDigger merged commit 422a832 into main Jul 13, 2025
2 checks passed
@MiniDigger MiniDigger deleted the edge-cases branch July 13, 2025 07:50
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.

3 participants