Commit 1374845d authored by Sander van Harmelen's avatar Sander van Harmelen

Fixup PR #190

parent 331a5ff8
......@@ -36,13 +36,16 @@ type TagsService struct {
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md
type Tag struct {
Commit *Commit `json:"commit"`
Name string `json:"name"`
Message string `json:"message"`
ReleaseDescription string `json:"release_description"`
Release struct {
TagName string `json:"tag_name"`
Description string `json:"description"`
} `json:"release"`
Name string `json:"name"`
Message string `json:"message"`
}
func (r Tag) String() string {
return Stringify(r)
func (t Tag) String() string {
return Stringify(t)
}
// ListTags gets a list of tags from a project, sorted by name in reverse
......@@ -102,9 +105,9 @@ func (s *TagsService) GetTag(pid interface{}, tag string, options ...OptionFunc)
// GitLab API docs:
// https://gitlab.com/gitlab-org/gitlab-ce/blob/8-16-stable/doc/api/tags.md#create-a-new-tag
type CreateTagOptions struct {
TagName *string `url:"tag_name,omitempty" json:"tag_name,omitempty"`
Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
Message *string `url:"message,omitempty" json:"message,omitempty"`
TagName *string `url:"tag_name,omitempty" json:"tag_name,omitempty"`
Ref *string `url:"ref,omitempty" json:"ref,omitempty"`
Message *string `url:"message,omitempty" json:"message,omitempty"`
ReleaseDescription *string `url:"release_description:omitempty" json:"release_description,omitempty"`
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment