Skip to content

Commit a4de58c

Browse files
committed
batch delete the binding relationship between team and PR
1 parent fdb1516 commit a4de58c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/org_team.go

+1
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ func DeleteTeam(t *organization.Team) error {
414414
&organization.TeamUser{OrgID: t.OrgID, TeamID: t.ID},
415415
&organization.TeamUnit{TeamID: t.ID},
416416
&organization.TeamInvite{TeamID: t.ID},
417+
&issues_model.Review{Type: issues_model.ReviewTypeRequest, ReviewerTeamID: t.ID}, // batch delete the binding relationship between team and PR (request review from team)
417418
); err != nil {
418419
return err
419420
}

0 commit comments

Comments
 (0)