nolint:revive // sign flag is part of the ReleaseExecutor interface contract.
(_ context.Context, tag, ref, message string, sign bool)
| 32 | |
| 33 | //nolint:revive // sign flag is part of the ReleaseExecutor interface contract. |
| 34 | func (e *liveExecutor) CreateTag(_ context.Context, tag, ref, message string, sign bool) error { |
| 35 | args := []string{"tag", "-a"} |
| 36 | if sign { |
| 37 | args = append(args, "-s") |
| 38 | } |
| 39 | args = append(args, tag, "-m", message, ref) |
| 40 | return gitRun(args...) |
| 41 | } |
| 42 | |
| 43 | func (*liveExecutor) PushTag(_ context.Context, tag string) error { |
| 44 | return gitRun("push", "origin", tag) |