No need to show release tag name in `release show <TAG>` output

Since TAG is provided as argument, the user already knows the tag name
and there's no need to include it (rather clumsily) in the output.
This commit is contained in:
Mislav Marohnić 2016-01-31 23:04:57 +11:00
Родитель a4ef93bb78
Коммит 2f48cd1e09
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -172,7 +172,7 @@ func showRelease(cmd *Command, args *Args) {
body := strings.TrimSpace(release.Body)
ui.Printf("%s (%s)\n", release.Name, release.TagName)
ui.Println(release.Name)
if body != "" {
ui.Printf("\n%s\n", body)
}

Просмотреть файл

@ -93,7 +93,7 @@ MARKDOWN
When I successfully run `hub release show v1.2.0`
Then the output should contain exactly:
"""
will_paginate 1.2.0 (v1.2.0)
will_paginate 1.2.0
### Hello to my release
@ -129,7 +129,7 @@ MARKDOWN
When I successfully run `hub release show v1.2.0 --show-downloads`
Then the output should contain exactly:
"""
will_paginate 1.2.0 (v1.2.0)
will_paginate 1.2.0
### Hello to my release