未验证 提交 1787dd9d 编写于 作者: M Mislav Marohnić 提交者: GitHub

Merge pull request #2225 from whuang8/pr-list-comments-removal

Remove NC/Nc from pr list formatting
......@@ -94,10 +94,6 @@ pr show [-uc] <PR-NUMBER>
%Mt: milestone title
%NC: number of comments
%Nc: number of comments wrapped in parentheses, or blank string if zero.
%cD: created date-only (no time of day)
%cr: created date, relative
......@@ -398,6 +394,9 @@ func deducePushTarget(branch *github.Branch, owner string) (*github.Project, err
func formatPullRequest(pr github.PullRequest, format string, colorize bool) string {
placeholders := formatIssuePlaceholders(github.Issue(pr), colorize)
delete(placeholders, "NC")
delete(placeholders, "Nc")
for key, value := range formatPullRequestPlaceholders(pr, colorize) {
placeholders[key] = value
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册