提交 2f48cd1e 编写于 作者: M Mislav Marohnić

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.
上级 a4ef93bb
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册