(e *xorm.Session, doer *User, repo *Repository, issue *Issue)
| 291 | } |
| 292 | |
| 293 | func createStatusComment(e *xorm.Session, doer *User, repo *Repository, issue *Issue) (*Comment, error) { |
| 294 | cmtType := CommentTypeClose |
| 295 | if !issue.IsClosed { |
| 296 | cmtType = CommentTypeReopen |
| 297 | } |
| 298 | return createComment(e, &CreateCommentOptions{ |
| 299 | Type: cmtType, |
| 300 | Doer: doer, |
| 301 | Repo: repo, |
| 302 | Issue: issue, |
| 303 | }) |
| 304 | } |
| 305 | |
| 306 | type CreateCommentOptions struct { |
| 307 | Type CommentType |
no test coverage detected