You've already forked goreleaser
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:
committed by
Carlos Alexandro Becker
parent
3fd9e0f306
commit
eb19e2b5d9
@ -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),
|
||||
|
Reference in New Issue
Block a user