group-bot-tests #105
Reference in New Issue
Block a user
Delete Branch "group-bot-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding unit tests
Looks good. One change can be done in a later PR. Though, I have not carefully reviewed ever line.
@@ -115,3 +118,3 @@}*/func FindAcceptableReviewInTimeline(user string, timeline []*models.TimelineComment, reviews []*models.PullReview) *models.TimelineComment {func (bot *ReviewBot) FindAcceptableReviewInTimeline(user string, timeline []*models.TimelineComment, reviews []*models.PullReview) *models.TimelineComment {(Example 1 of Gitea Web diff coloring error: no addition here is highlighted.)
@@ -118,3 +121,3 @@for _, t := range timeline {if t.Type == common.TimelineCommentType_Comment && t.User.UserName == user && t.Created == t.Updated {if ReviewAccepted(t.Body) || ReviewRejected(t.Body) {if bot.ReviewAccepted(t.Body) || bot.ReviewRejected(t.Body) {(Example 2 of Gitea Web diff coloring error: only the first bot. addition is highlighted.)
@@ -63,0 +444,4 @@Rejected: true,},{Name: "Multiline: Multiple group mentions, noise in between",Can be fixed in a later PR. This description is wrong. The actual test can be merged with "Approved on second line". The described test wold probably be a useful addition.