diff --git a/server/datastore/database/commit.go b/server/datastore/database/commit.go index 56f1cf04..5ad1e46f 100644 --- a/server/datastore/database/commit.go +++ b/server/datastore/database/commit.go @@ -133,6 +133,7 @@ SELECT * FROM commits WHERE repo_id = ? AND commit_branch = ? + AND commit_pr = '' ORDER BY commit_id DESC LIMIT 1 `