1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2026-05-16 09:20:15 +02:00
Files
goreleaser/context/context.go
T
Carlos Alexandro Becker ddec194c7e wip ctx
2017-01-14 12:34:22 -02:00

30 lines
480 B
Go

package context
import "github.com/goreleaser/releaser/config"
// GitInfo includes tags and diffs used in some point
type GitInfo struct {
CurrentTag string
PreviousTag string
Diff string
}
type Repo struct {
Owner, Name string
}
type Context struct {
Config *config.ProjectConfig
Token string
Git *GitInfo
Repo *Repo
BrewRepo *Repo
Archives []string
}
func New(config config.ProjectConfig) *Context {
return &Context{
Config: config,
}
}