This method assumes following fields have been assigned with valid values: Required - Poster, Issue
()
| 137 | // This method assumes following fields have been assigned with valid values: |
| 138 | // Required - Poster, Issue |
| 139 | func (c *Comment) APIFormat() *api.Comment { |
| 140 | return &api.Comment{ |
| 141 | ID: c.ID, |
| 142 | HTMLURL: c.HTMLURL(), |
| 143 | Poster: c.Poster.APIFormat(), |
| 144 | Body: c.Content, |
| 145 | Created: c.Created, |
| 146 | Updated: c.Updated, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | func CommentHashTag(id int64) string { |
| 151 | return "issuecomment-" + com.ToStr(id) |
no test coverage detected