Bugfix
This commit is contained in:
parent
9e8ecd50a3
commit
e1c7b08174
|
@ -101,11 +101,12 @@ RETURNING repo_id, issue_id, issue_number, title, address, commit_id;
|
||||||
|
|
||||||
-- :name create-pull-request! :! :n
|
-- :name create-pull-request! :! :n
|
||||||
-- :doc creates pull request
|
-- :doc creates pull request
|
||||||
INSERT INTO pull_requests (repo_id, pr_id, pr_number, commit_id, user_id)
|
INSERT INTO pull_requests (repo_id, pr_id, pr_number, issue_number, commit_id, user_id)
|
||||||
SELECT
|
SELECT
|
||||||
:repo_id,
|
:repo_id,
|
||||||
:pr_id,
|
:pr_id,
|
||||||
:pr_number,
|
:pr_number,
|
||||||
|
:issue_number,
|
||||||
:commit_id,
|
:commit_id,
|
||||||
:user_id
|
:user_id
|
||||||
WHERE NOT exists(SELECT 1
|
WHERE NOT exists(SELECT 1
|
||||||
|
|
Loading…
Reference in New Issue