diff --git a/main.go b/main.go index 7b43e3da5..744485021 100644 --- a/main.go +++ b/main.go @@ -86,7 +86,7 @@ func main() { if err != nil { return cli.NewExitError(err.Error(), 1) } - ctx.Changelog = string(bts) + ctx.ReleaseNotes = string(bts) } for _, pipe := range pipes { log.Println(pipe.Description()) diff --git a/pipeline/brew/brew_test.go b/pipeline/brew/brew_test.go index 0ef198b29..9f329ab4a 100644 --- a/pipeline/brew/brew_test.go +++ b/pipeline/brew/brew_test.go @@ -163,7 +163,7 @@ func (client *DummyClient) GetInfo(ctx *context.Context) (info client.Info, err return } -func (client *DummyClient) CreateRelease(ctx *context.Context) (releaseID int, err error) { +func (client *DummyClient) CreateRelease(ctx *context.Context, body string) (releaseID int, err error) { return } diff --git a/pipeline/defaults/defaults.go b/pipeline/defaults/defaults.go index 266c66fc6..2901e0cd4 100644 --- a/pipeline/defaults/defaults.go +++ b/pipeline/defaults/defaults.go @@ -31,6 +31,7 @@ func (Pipe) Run(ctx *context.Context) error { if ctx.Config.Release.GitHub.Name == "" { repo, err := remoteRepo() ctx.Config.Release.GitHub = repo + // TODO add a test to cover this if err != nil { return errors.New("failed reading repo from git: " + err.Error()) } diff --git a/pipeline/defaults/remote.go b/pipeline/defaults/remote.go index b89b87f83..abcd41330 100644 --- a/pipeline/defaults/remote.go +++ b/pipeline/defaults/remote.go @@ -12,6 +12,7 @@ import ( func remoteRepo() (result config.Repo, err error) { cmd := exec.Command("git", "config", "--get", "remote.origin.url") bts, err := cmd.CombinedOutput() + // TODO: cover this with tests if err != nil { return result, errors.New(err.Error() + ": " + string(bts)) }