Skip to content

Commit

Permalink
Added omitempty onto the url tags
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisTheobald authored Jun 27, 2022
1 parent bd9e20e commit 6f600cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ func (s *ReleasesService) GetRelease(pid interface{}, tagName string, options ..
// GitLab API docs:
// https://docs.gitlab.com/ce/api/releases/index.html#create-a-release
type CreateReleaseOptions struct {
Name *string `url:"name" json:"name,omitempty"`
TagName *string `url:"tag_name" json:"tag_name,omitempty"`
TagMessage *string `url:"tag_message" json:"tag_message,omitempty"`
Description *string `url:"description" json:"description,omitempty"`
Name *string `url:"name,omitempty" json:"name,omitempty"`
TagName *string `url:"tag_name,omitempty" json:"tag_name,omitempty"`
TagMessage *string `url:"tag_message,omitempty" json:"tag_message,omitempty"`
Description *string `url:"description,omitempty" json:"description,omitempty"`
Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
Milestones *[]string `url:"milestones,omitempty" json:"milestones,omitempty"`
Assets *ReleaseAssetsOptions `url:"assets,omitempty" json:"assets,omitempty"`
Expand Down

0 comments on commit 6f600cf

Please sign in to comment.