mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
cleanup
This commit is contained in:
parent
69767ec798
commit
0498ec3393
2
main.go
2
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())
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
}
|
||||
|
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user