mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-20 16:50:28 -05:00
format with gofumpt also
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
parent
faad7e0017
commit
8ae2e4b2ef
1 changed files with 0 additions and 6 deletions
|
@ -31,10 +31,8 @@ func (agg *CommentAggregator) aggregateComment(c *Comment, index int) {
|
|||
|
||||
if c.Type == CommentTypeClose {
|
||||
agg.IsClosed = true
|
||||
|
||||
} else if c.Type == CommentTypeReopen {
|
||||
agg.IsClosed = false
|
||||
|
||||
} else if c.Type == CommentTypeReviewRequest {
|
||||
if c.AssigneeID > 0 {
|
||||
req := RequestReviewTarget{User: c.Assignee}
|
||||
|
@ -66,7 +64,6 @@ func (agg *CommentAggregator) aggregateComment(c *Comment, index int) {
|
|||
} else {
|
||||
agg.delLabel(c.Label)
|
||||
}
|
||||
|
||||
} else if c.Type == CommentTypeAggregator {
|
||||
agg.Merge(c.Aggregator)
|
||||
}
|
||||
|
@ -249,17 +246,14 @@ func (agg *CommentAggregator) createAggregatedComment(issue *Issue, final bool)
|
|||
// instead of an aggregator
|
||||
if agg.OnlyLabelsChanged() {
|
||||
comment.Type = CommentTypeLabel
|
||||
|
||||
} else if agg.OnlyClosedReopened() {
|
||||
if agg.IsClosed {
|
||||
comment.Type = CommentTypeClose
|
||||
} else {
|
||||
comment.Type = CommentTypeReopen
|
||||
}
|
||||
|
||||
} else if agg.OnlyRequestReview() {
|
||||
comment.Type = CommentTypeReviewRequest
|
||||
|
||||
} else {
|
||||
comment.Type = CommentTypeAggregator
|
||||
comment.Aggregator = &new_agg
|
||||
|
|
Loading…
Add table
Reference in a new issue