mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
replace deprecated function in count points script (#5791)
* fix deprecated function call in count points script * note
This commit is contained in:
6
.github/scripts/count-points.mjs
vendored
6
.github/scripts/count-points.mjs
vendored
@@ -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 search
|
||||
const 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 PR
|
||||
|
||||
6
upcoming-release-notes/5791.md
Normal file
6
upcoming-release-notes/5791.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Fix deprecation warning in count-points script
|
||||
Reference in New Issue
Block a user