(cmd *cobra.Command, tag string)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 61 | func editRelease(project string, tag string, opts *gitlab.UpdateReleaseOptions) (*gitlab.Release, error) { |
| 62 | git, err := newGitlabClient() |
no test coverage detected