Signed-off-by: oppiliappan me@oppi.li
+5
appview/pulls/pulls.go
+5
appview/pulls/pulls.go
···
1713
1713
1714
1714
// deleted pulls are marked as deleted in the DB
1715
1715
for _, p := range deletions {
1716
+
// do not do anything about already merged PRs
1717
+
if p.State == db.PullMerged {
1718
+
continue
1719
+
}
1720
+
1716
1721
err := db.DeletePull(tx, p.RepoAt, p.PullId)
1717
1722
if err != nil {
1718
1723
log.Println("failed to delete pull", err, p.PullId)