1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

refactor: rm internal/name pkg

Each pipe now does its own templating
This commit is contained in:
Carlos Alexandro Becker
2017-12-02 21:58:55 -02:00
committed by Carlos Alexandro Becker
parent 3fd9e0f306
commit eb19e2b5d9
8 changed files with 90 additions and 246 deletions

View File

@ -8,7 +8,6 @@ import (
"github.com/apex/log"
"github.com/google/go-github/github"
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/name"
"golang.org/x/oauth2"
)
@ -84,12 +83,12 @@ func (c *githubClient) CreateFile(
func (c *githubClient) CreateRelease(ctx *context.Context, body string) (releaseID int, err error) {
var release *github.RepositoryRelease
releaseTitle, err := name.ForTitle(ctx)
title, err := releaseTitle(ctx)
if err != nil {
return 0, err
}
var data = &github.RepositoryRelease{
Name: github.String(releaseTitle),
Name: github.String(title),
TagName: github.String(ctx.Git.CurrentTag),
Body: github.String(body),
Draft: github.Bool(ctx.Config.Release.Draft),