Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces.
(s string)
| 1375 | |
| 1376 | // Humanize returns a copy of the string s that replaces all instance of '-' and '_' with spaces. |
| 1377 | func humanize(s string) string { |
| 1378 | replace := "_-" |
| 1379 | h := func(r rune) rune { |
| 1380 | if strings.ContainsRune(replace, r) { |
| 1381 | return ' ' |
| 1382 | } |
| 1383 | return r |
| 1384 | } |
| 1385 | return strings.Map(h, s) |
| 1386 | } |
| 1387 | |
| 1388 | func requestableReviewersForCompletion(opts *CreateOptions) ([]string, error) { |
| 1389 | httpClient, err := opts.HttpClient() |
no test coverage detected