Add "open" qualifier when listing open issues/PRs (#1457)
This commit is contained in:
parent
88eaa28aef
commit
bb6851c88b
4 changed files with 7 additions and 8 deletions
|
|
@ -48,9 +48,8 @@ func RenderMarkdown(text string) (string, error) {
|
|||
func Pluralize(num int, thing string) string {
|
||||
if num == 1 {
|
||||
return fmt.Sprintf("%d %s", num, thing)
|
||||
} else {
|
||||
return fmt.Sprintf("%d %ss", num, thing)
|
||||
}
|
||||
return fmt.Sprintf("%d %ss", num, thing)
|
||||
}
|
||||
|
||||
func fmtDuration(amount int, unit string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue