Skip to content

Commit

Permalink
add review states (added in go-gitea#19007)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed May 7, 2022
1 parent 974e574 commit 3903a4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ func deletePullsByBaseRepoID(sess db.Engine, repoID int64) error {
return err
}

// Delete review states
if _, err := sess.In("pull_id", deleteCond).
Delete(&pull_model.ReviewState{}); err != nil {
return err
}

_, err := sess.Delete(&PullRequest{BaseRepoID: repoID})
return err
}
Expand Down

0 comments on commit 3903a4b

Please sign in to comment.