diff --git a/internal/gitlab/publish_test.go b/internal/gitlab/publish_test.go index 04d1889c..9987ab1c 100644 --- a/internal/gitlab/publish_test.go +++ b/internal/gitlab/publish_test.go @@ -26,7 +26,7 @@ func TestPublishExistingRelease(t *testing.T) { assert.NoError(t, err) - expectedBody := fmt.Sprintf("{\"name\":\"\",\"tag_name\":\"%v\",\"description\":\"%v\"}", tagName, newReleaseNotes) + expectedBody := fmt.Sprintf("{\"tag_name\":\"%v\",\"description\":\"%v\"}", tagName, newReleaseNotes) assert.Equal(t, expectedBody, string(body)) @@ -64,7 +64,7 @@ func TestPublishNewRelease(t *testing.T) { assert.NoError(t, err) - expectedBody := fmt.Sprintf("{\"name\":\"\",\"tag_name\":\"%v\",\"description\":\"%v\"}", tagName, newReleaseNotes) + expectedBody := fmt.Sprintf("{\"tag_name\":\"%v\",\"description\":\"%v\"}", tagName, newReleaseNotes) assert.Equal(t, expectedBody, string(body)) diff --git a/internal/gitlab/service.go b/internal/gitlab/service.go index 317f77cd..9002eff8 100644 --- a/internal/gitlab/service.go +++ b/internal/gitlab/service.go @@ -14,7 +14,6 @@ type Gitlab struct { } type gitlabRelease struct { - Name string `json:"name"` TagName string `json:"tag_name"` Message string `json:"description"` }