You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-23 22:36:11 +02:00
21 lines
388 B
Go
21 lines
388 B
Go
|
|
package snapshot
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/goreleaser/goreleaser/context"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Pipe for checksums
|
||
|
|
type Pipe struct{}
|
||
|
|
|
||
|
|
func (Pipe) String() string {
|
||
|
|
return "generating changelog"
|
||
|
|
}
|
||
|
|
|
||
|
|
// Default sets the pipe defaults
|
||
|
|
func (Pipe) Default(ctx *context.Context) error {
|
||
|
|
if ctx.Config.Snapshot.NameTemplate == "" {
|
||
|
|
ctx.Config.Snapshot.NameTemplate = "SNAPSHOT-{{ .Commit }}"
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|