Skip to content

Omit empty version#36

Merged
piceri merged 1 commit intomainfrom
empty-version
Feb 12, 2026
Merged

Omit empty version#36
piceri merged 1 commit intomainfrom
empty-version

Conversation

@piceri
Copy link
Contributor

@piceri piceri commented Feb 12, 2026

The version field is optional when creating a deployment record. This change will prevent sending an empty string as the version body parameter.

@piceri piceri requested a review from a team as a code owner February 12, 2026 19:30
Copilot AI review requested due to automatic review settings February 12, 2026 19:30
Copy link

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

Updates the DeploymentRecord request payload to avoid sending an empty version field to the GitHub artifact deployment records API, aligning with the API’s “optional version” semantics.

Changes:

  • Add omitempty to the DeploymentRecord.Version JSON tag so empty strings are not serialized into the request body.

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

@piceri piceri merged commit a295c58 into main Feb 12, 2026
11 of 12 checks passed
@piceri piceri deleted the empty-version branch February 12, 2026 19:41
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