Skip to content

Commit 0e18fc1

Browse files
Fix types for PRState constant
1 parent 7a8e6d1 commit 0e18fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/internal/services/reviews_services.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ 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 {
142+
if existingPR.State == string(constants.PRStateClosed) {
143143
continue
144144
}
145145
found := false
@@ -150,7 +150,7 @@ func (rs *ReviewsService) RefreshPullRequests(ctx context.Context, tx *gorm.DB,
150150
}
151151
}
152152
if !found {
153-
existingPR.State = constants.PRStateClosed
153+
existingPR.State = string(constants.PRStateClosed)
154154
closedPRs = append(closedPRs, existingPR)
155155
}
156156
}

0 commit comments

Comments
 (0)