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

Function runNewRelease

cmd/new_release.go:54–63  ·  view source on GitHub ↗
(cmd *cobra.Command, tag string)

Source from the content-addressed store, hash-verified

52}
53
54func runNewRelease(cmd *cobra.Command, tag string) error {
55 opts := new(gitlab.CreateReleaseOptions)
56 opts.Description = gitlab.String(getFlagString(cmd, "description"))
57 createdRelease, err := newRelease(getFlagString(cmd, "project"), tag, opts)
58 if err != nil {
59 return err
60 }
61 printReleasesOut(getFlagString(cmd, "out"), createdRelease)
62 return nil
63}
64
65func newRelease(project string, tag string, opts *gitlab.CreateReleaseOptions) (*gitlab.Release, error) {
66 git, err := newGitlabClient()

Callers 1

new_release.goFile · 0.85

Calls 3

getFlagStringFunction · 0.85
newReleaseFunction · 0.85
printReleasesOutFunction · 0.85

Tested by

no test coverage detected