(filename string)
| 216 | } |
| 217 | |
| 218 | func isMarkdownFile(filename string) bool { |
| 219 | // kind of gross, but i'm assuming that 90% of the time the suffix will just be .md. it didn't |
| 220 | // seem worth executing a regex for this given that assumption. |
| 221 | return strings.HasSuffix(filename, ".md") || |
| 222 | strings.HasSuffix(filename, ".markdown") || |
| 223 | strings.HasSuffix(filename, ".mdown") || |
| 224 | strings.HasSuffix(filename, ".mkdown") |
| 225 | } |
| 226 | |
| 227 | func generateBranchURL(r ghrepo.Interface, branch string) string { |
| 228 | if branch == "" { |