WikiPath returns wiki data path by given user and repository name.
(userName, repoName string)
| 52 | |
| 53 | // WikiPath returns wiki data path by given user and repository name. |
| 54 | func WikiPath(userName, repoName string) string { |
| 55 | return filepath.Join(repoutil.UserPath(userName), strings.ToLower(repoName)+".wiki.git") |
| 56 | } |
| 57 | |
| 58 | func (r *Repository) WikiPath() string { |
| 59 | return WikiPath(r.MustOwner().Name, r.Name) |
no test coverage detected