MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / newTag

Function newTag

cmd/new_tag.go:74–84  ·  view source on GitHub ↗
(project string, opts *gitlab.CreateTagOptions)

Source from the content-addressed store, hash-verified

72}
73
74func newTag(project string, opts *gitlab.CreateTagOptions) (*gitlab.Tag, error) {
75 git, err := newGitlabClient()
76 if err != nil {
77 return nil, err
78 }
79 tag, _, err := git.Tags.CreateTag(project, opts)
80 if err != nil {
81 return nil, err
82 }
83 return tag, nil
84}

Callers 3

TestDeleteTagCmdFunction · 0.85
runNewTagFunction · 0.85
TestNewReleaseFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by 2

TestDeleteTagCmdFunction · 0.68
TestNewReleaseFunction · 0.68