diff --git a/scm/driver/github/release.go b/scm/driver/github/release.go index 32c2e8bb4..82b2e350e 100644 --- a/scm/driver/github/release.go +++ b/scm/driver/github/release.go @@ -26,10 +26,10 @@ type release struct { } type releaseInput struct { - Title string `json:"name"` - Description string `json:"body"` - Tag string `json:"tag_name"` - Commitish string `json:"target_commitish"` + Title string `json:"name,omitempty"` + Description string `json:"body,omitempty"` + Tag string `json:"tag_name,omitempty"` + Commitish string `json:"target_commitish,omitempty"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` }