(repo ghrepo.Interface, branch string)
| 57 | } |
| 58 | |
| 59 | func getReadmePath(repo ghrepo.Interface, branch string) string { |
| 60 | path := fmt.Sprintf("repos/%s/readme", ghrepo.FullName(repo)) |
| 61 | if branch != "" { |
| 62 | path = fmt.Sprintf("%s?ref=%s", path, branch) |
| 63 | } |
| 64 | return path |
| 65 | } |
no test coverage detected