group-bot-tests #105

Manually merged
adamm merged 5 commits from group-bot-tests into main 2026-01-19 13:41:23 +01:00
Owner

Adding unit tests

Adding unit tests
adamm added 5 commits 2026-01-07 12:04:45 +01:00
adamm requested review from jzerebecki 2026-01-07 16:18:24 +01:00
jzerebecki closed this pull request 2026-01-09 13:43:57 +01:00
jzerebecki reopened this pull request 2026-01-09 13:44:32 +01:00
jzerebecki approved these changes 2026-01-16 13:33:08 +01:00
jzerebecki left a comment
Owner

Looks good. One change can be done in a later PR. Though, I have not carefully reviewed ever line.

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 {
Owner

(Example 1 of Gitea Web diff coloring error: no addition here is highlighted.)

(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) {
Owner

(Example 2 of Gitea Web diff coloring error: only the first bot. addition is highlighted.)

(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",
Owner

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.

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.
adamm manually merged commit 38f4c44fd0 into main 2026-01-19 13:41:23 +01:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: git-workflow/autogits#105