1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-04-19 17:09:58 -03:00
parent 69767ec798
commit 0498ec3393
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 4 additions and 2 deletions

View File

@ -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())

View File

@ -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
}

View File

@ -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())
}

View File

@ -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))
}