A local-first personal finance app
replace deprecated function in count points script (#5791)
Matt Fiddaman6365a8f4bb28
diff --git a/.github/scripts/count-points.mjs b/.github/scripts/count-points.mjsindex 0662fb0346..2f5c86fae6 100644--- a/.github/scripts/count-points.mjs+++ b/.github/scripts/count-points.mjs@@ -2,7 +2,7 @@ import { Octokit } from '@octokit/rest';import { minimatch } from 'minimatch';import pLimit from 'p-limit';-const limit = pLimit(30);+const limit = pLimit(50);/** Repository-specific configuration for points calculation */const REPOSITORY_CONFIG = new Map([@@ -129,13 +129,13 @@ async function countContributorPoints(repo) {// Get all PRs using searchconst searchQuery = `repo:${owner}/${repo} is:pr is:merged merged:${since.toISOString()}..${until.toISOString()}`;const recentPRs = await octokit.paginate(- octokit.search.issuesAndPullRequests,+ 'GET /search/issues',{q: searchQuery,per_page: 100,advanced_search: true,},- response => response.data,+ response => response.data.filter(pr => pr.number),);// Get reviews and PR details for each PRdiff --git a/upcoming-release-notes/5791.md b/upcoming-release-notes/5791.mdnew file mode 100644index 0000000000..a1a8ce2a0a--- /dev/null+++ b/upcoming-release-notes/5791.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [matt-fidd]+---++Fix deprecation warning in count-points script