MCPcopy Index your code
hub / github.com/coder/coder / CreateTag

Method CreateTag

scripts/releaser/executor.go:34–41  ·  view source on GitHub ↗

nolint:revive // sign flag is part of the ReleaseExecutor interface contract.

(_ context.Context, tag, ref, message string, sign bool)

Source from the content-addressed store, hash-verified

32
33//nolint:revive // sign flag is part of the ReleaseExecutor interface contract.
34func (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
43func (*liveExecutor) PushTag(_ context.Context, tag string) error {
44 return gitRun("push", "origin", tag)

Callers

nothing calls this directly

Calls 1

gitRunFunction · 0.85

Tested by

no test coverage detected