diff --git a/github-actions/create-pr-for-changes/lib/main.ts b/github-actions/create-pr-for-changes/lib/main.ts index 46f59e322..916b3f54e 100644 --- a/github-actions/create-pr-for-changes/lib/main.ts +++ b/github-actions/create-pr-for-changes/lib/main.ts @@ -129,6 +129,7 @@ async function main(): Promise { const { data: {items: supersededPrs}, } = await git.github.search.issuesAndPullRequests({ + advanced_search: 'true', q: toGithubSearchQuery({ repo: `${repo.owner}/${repo.name}`, type: 'pull-request', @@ -276,6 +277,7 @@ async function cleanUpObsoleteBranches( const { data: {items: obsoletePrs}, } = await git.github.search.issuesAndPullRequests({ + advanced_search: 'true', q: toGithubSearchQuery({ repo: `${repo.owner}/${repo.name}`, type: 'pull-request', diff --git a/github-actions/create-pr-for-changes/main.js b/github-actions/create-pr-for-changes/main.js index f2b2d86bc..af7df1a40 100644 --- a/github-actions/create-pr-for-changes/main.js +++ b/github-actions/create-pr-for-changes/main.js @@ -47995,6 +47995,7 @@ async function main() { core.info(`No pre-existing PR found for branch '${branchName}'.`); } const { data: { items: supersededPrs } } = await git.github.search.issuesAndPullRequests({ + advanced_search: "true", q: toGithubSearchQuery({ repo: `${repo.owner}/${repo.name}`, type: "pull-request", @@ -48073,6 +48074,7 @@ ${prBody}`; } async function cleanUpObsoleteBranches(git, repo, forkRepo, branchPrefix) { const { data: { items: obsoletePrs } } = await git.github.search.issuesAndPullRequests({ + advanced_search: "true", q: toGithubSearchQuery({ repo: `${repo.owner}/${repo.name}`, type: "pull-request",