1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-22 04:08:49 +02:00
This commit is contained in:
Carlos Alexandro Becker 2016-12-29 10:49:34 -02:00
parent 8cf148f989
commit d1c8625672
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,7 @@ func dataFor(version string, config config.ProjectConfig, client *github.Client)
} else {
description = *rep.Description
}
// TODO deal with `-`, `_` and other stuff on binary name
return templateData{
Name: strings.Title(config.BinaryName),
Desc: description,

View File

@ -24,6 +24,7 @@ func Release(version, diff string, config config.ProjectConfig) error {
repo := strings.Split(config.Repo, "/")[1]
// TODO update release if it already exists
// TODO add `go version` to the description
r, _, err := client.Repositories.CreateRelease(owner, repo, &github.RepositoryRelease{
Name: github.String(version),
TagName: github.String(version),