Thibaud FAURIE (blazfhem)2019-08-13 14:39 Added in include/PullRequest/Dao.php : ``` public function searchOpenByReferences($repo_src_id, $sha1_src, $repo_dest_id, $sha1_dest) { $sql = 'SELECT * FROM plugin_pullrequest_review WHERE repository_id = ? AND sha1_src = ? AND repo_dest_id = ? AND sha1_dest = ? AND status = ?'; return $this->getDB()->row($sql, $repo_src_id, $sha1_src, $repo_dest_id, $sha1_dest, 'R'); } ``` Added in include/PullRequest/PullRequestCreator.php l.150: ``` - $row = $this->pull_request_dao->searchByReferences($repo_src_id, $sha1_src, $repo_dest_id, $sha1_dest); + $row = $this->pull_request_dao->searchOpenByReferences($repo_src_id, $sha1_src, $repo_dest_id, $sha1_dest); ``` Seams to be working fine. Need to be done on official releases.
Thibaud FAURIE (blazfhem)2019-08-11 23:27Summary -Can't create Pull Request because same closed PR exist +Can't create Pull Request because same CLOSED PR exists