MCPcopy Create free account
hub / github.com/gogs/gogs / createStatusComment

Function createStatusComment

internal/database/comment.go:293–304  ·  view source on GitHub ↗
(e *xorm.Session, doer *User, repo *Repository, issue *Issue)

Source from the content-addressed store, hash-verified

291}
292
293func 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
306type CreateCommentOptions struct {
307 Type CommentType

Callers 1

changeStatusMethod · 0.85

Calls 1

createCommentFunction · 0.85

Tested by

no test coverage detected