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

Function runEditRelease

cmd/edit_release.go:50–59  ·  view source on GitHub ↗
(cmd *cobra.Command, tag string)

Source from the content-addressed store, hash-verified

48}
49
50func runEditRelease(cmd *cobra.Command, tag string) error {
51 opts := new(gitlab.UpdateReleaseOptions)
52 opts.Description = gitlab.String(getFlagString(cmd, "description"))
53 updatedRelease, err := editRelease(getFlagString(cmd, "project"), tag, opts)
54 if err != nil {
55 return err
56 }
57 printReleasesOut(getFlagString(cmd, "out"), updatedRelease)
58 return nil
59}
60
61func editRelease(project string, tag string, opts *gitlab.UpdateReleaseOptions) (*gitlab.Release, error) {
62 git, err := newGitlabClient()

Callers 1

edit_release.goFile · 0.85

Calls 3

getFlagStringFunction · 0.85
editReleaseFunction · 0.85
printReleasesOutFunction · 0.85

Tested by

no test coverage detected