Skip to content

Commit c778eda

Browse files
Don't update already closed PR's
1 parent 1b8ceb6 commit c778eda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/internal/services/reviews_services.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func (rs *ReviewsService) RefreshPullRequests(ctx context.Context, tx *gorm.DB,
139139
// find PRs that are no longer open
140140
var closedPRs []*models.PullRequest
141141
for _, existingPR := range existingPRs {
142+
if existingPR.State == constants.PRStateClosed {
143+
continue
144+
}
142145
found := false
143146
for _, pr := range currentOpenPRs {
144147
if pr.Number == existingPR.Number {

0 commit comments

Comments
 (0)