Skip to content

fix: correct GitCredentialId JSON tag on ReleaseTemplateGitResource - #445

Draft
NickJosevski wants to merge 1 commit into
mainfrom
fix/443-git-credential-id-json-tag
Draft

fix: correct GitCredentialId JSON tag on ReleaseTemplateGitResource#445
NickJosevski wants to merge 1 commit into
mainfrom
fix/443-git-credential-id-json-tag

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

GitCredentialId was tagged json:"NuGetPackageId,omitempty", so it never deserialised and always read as "". GitHubConnectionId, which the server also sends, was missing from the struct.

Tags now match pkg/gitdependencies/git_dependency.go, which had them right.

Verified against a live instance — the same GetTemplate call that returned GitCredentialId = "" now returns "GitCredentials-1". Added unmarshal/marshal tests; pkg/releases previously had none.

Fixes #443

🤖 Generated with Claude Code

GitCredentialId was tagged NuGetPackageId, so it never deserialised and
always read as empty. Add GitHubConnectionId, which the server also sends.

Fixes #443

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

[BUG] ReleaseTemplateGitResource.GitCredentialId has the wrong JSON tag and never deserialises

1 participant