Skip to content

Commit aeed67c

Browse files
authored
Don't use deprecated GitHub API call (#166)
GitHub is deprecating searching issues/PRs without advanced search [0], so not setting it currently throws a warning. Until September, let's enable it so they're happy. [0]: https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/#api-support-for-issues-advanced-search
1 parent 647b086 commit aeed67c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/src/actions/find-sha-for-plan.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ async function findShaForPlan() {
1212
const pulls = await github.client.paginate(
1313
github.client.search.issuesAndPullRequests,
1414
{
15-
q: `repository:${context.repo.owner}/${context.repo.repo} ${context.sha} type:pr is:merged`
15+
q: `repository:${context.repo.owner}/${context.repo.repo} ${context.sha} type:pr is:merged`,
16+
advanced_search: true
1617
}
1718
)
1819

0 commit comments

Comments
 (0)