"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "services/pull/review.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

review.go  (gitea-1.13.1):review.go  (gitea-1.13.2)
skipping to change at line 60 skipping to change at line 60
issue, issue,
content, content,
treePath, treePath,
line, line,
replyReviewID, replyReviewID,
) )
if err != nil { if err != nil {
return nil, err return nil, err
} }
notification.NotifyCreateIssueComment(doer, issue.Repo, issue, co mentions, err := issue.FindAndUpdateIssueMentions(models.DefaultD
mment) BContext(), doer, comment.Content)
if err != nil {
return nil, err
}
notification.NotifyCreateIssueComment(doer, issue.Repo, issue, co
mment, mentions)
return comment, nil return comment, nil
} }
review, err := models.GetCurrentReview(doer, issue) review, err := models.GetCurrentReview(doer, issue)
if err != nil { if err != nil {
if !models.IsErrReviewNotExist(err) { if !models.IsErrReviewNotExist(err) {
return nil, err return nil, err
} }
skipping to change at line 229 skipping to change at line 234
return nil, nil, err return nil, nil, err
} }
} }
} }
review, comm, err := models.SubmitReview(doer, issue, reviewType, content , commitID, stale) review, comm, err := models.SubmitReview(doer, issue, reviewType, content , commitID, stale)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
notification.NotifyPullRequestReview(pr, review, comm) ctx := models.DefaultDBContext()
mentions, err := issue.FindAndUpdateIssueMentions(ctx, doer, comm.Content
)
if err != nil {
return nil, nil, err
}
notification.NotifyPullRequestReview(pr, review, comm, mentions)
for _, lines := range review.CodeComments {
for _, comments := range lines {
for _, codeComment := range comments {
mentions, err := issue.FindAndUpdateIssueMentions
(ctx, doer, codeComment.Content)
if err != nil {
return nil, nil, err
}
notification.NotifyPullRequestCodeComment(pr, cod
eComment, mentions)
}
}
}
return review, comm, nil return review, comm, nil
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 30 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)