mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Add is:pull-request to search query when looking for existing PR (#228)
* Add `is:pull-request` to search query when looking for existing PR * Create sharp-pens-matter.md * Update .changeset/sharp-pens-matter.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
co-authored by
Mateusz Burzyński
parent
8ec7804f3e
commit
bff53cc50c
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add `is:pull-request` to search query when looking for existing PR. This fixes an issue with user-owned PATs.
|
||||||
+1
-1
@@ -291,7 +291,7 @@ export async function runVersion({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let searchQuery = `repo:${repo}+state:open+head:${versionBranch}+base:${branch}`;
|
let searchQuery = `repo:${repo}+state:open+head:${versionBranch}+base:${branch}+is:pull-request`;
|
||||||
let searchResultPromise = octokit.search.issuesAndPullRequests({
|
let searchResultPromise = octokit.search.issuesAndPullRequests({
|
||||||
q: searchQuery,
|
q: searchQuery,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user