()
| 162 | } |
| 163 | |
| 164 | func (issue *Issue) HTMLURL() string { |
| 165 | var path string |
| 166 | if issue.IsPull { |
| 167 | path = "pulls" |
| 168 | } else { |
| 169 | path = "issues" |
| 170 | } |
| 171 | return fmt.Sprintf("%s/%s/%d", issue.Repo.HTMLURL(), path, issue.Index) |
| 172 | } |
| 173 | |
| 174 | // State returns string representation of issue status. |
| 175 | func (issue *Issue) State() api.StateType { |
nothing calls this directly
no test coverage detected