From 5f4e651eb7654bd493f4aae0a95844cd66031f5f Mon Sep 17 00:00:00 2001 From: Chris Grau <99276511+chrisgrautealium@users.noreply.github.com> Date: Wed, 7 Dec 2022 15:32:47 -0800 Subject: [PATCH] Add a comment about the accepted values for MakeLatest --- github/repos_releases.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/github/repos_releases.go b/github/repos_releases.go index 3b5e895b778..464c2ee1e2b 100644 --- a/github/repos_releases.go +++ b/github/repos_releases.go @@ -19,12 +19,13 @@ import ( // RepositoryRelease represents a GitHub release in a repository. type RepositoryRelease struct { - TagName *string `json:"tag_name,omitempty"` - TargetCommitish *string `json:"target_commitish,omitempty"` - Name *string `json:"name,omitempty"` - Body *string `json:"body,omitempty"` - Draft *bool `json:"draft,omitempty"` - Prerelease *bool `json:"prerelease,omitempty"` + TagName *string `json:"tag_name,omitempty"` + TargetCommitish *string `json:"target_commitish,omitempty"` + Name *string `json:"name,omitempty"` + Body *string `json:"body,omitempty"` + Draft *bool `json:"draft,omitempty"` + Prerelease *bool `json:"prerelease,omitempty"` + // MakeLatest can be one of: "true", "false", or "legacy". MakeLatest *string `json:"make_latest,omitempty"` DiscussionCategoryName *string `json:"discussion_category_name,omitempty"`