Skip to content

Commit 7a2c9aa

Browse files
committed
bumping version and fixing minor vulns
1 parent 513782f commit 7a2c9aa

File tree

4 files changed

+528
-470
lines changed

4 files changed

+528
-470
lines changed

action/dist/index.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31014,7 +31014,7 @@ class RequestError extends Error {
3101431014

3101531015

3101631016
// pkg/dist-src/version.js
31017-
var dist_bundle_VERSION = "0.0.0-development";
31017+
var dist_bundle_VERSION = "10.0.3";
3101831018

3101931019
// pkg/dist-src/defaults.js
3102031020
var defaults_default = {
@@ -31564,14 +31564,16 @@ function normalizePaginatedListResponse(response) {
3156431564
data: []
3156531565
};
3156631566
}
31567-
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
31567+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data) || "total_commits" in response.data;
3156831568
if (!responseNeedsNormalization) return response;
3156931569
const incompleteResults = response.data.incomplete_results;
3157031570
const repositorySelection = response.data.repository_selection;
3157131571
const totalCount = response.data.total_count;
31572+
const totalCommits = response.data.total_commits;
3157231573
delete response.data.incomplete_results;
3157331574
delete response.data.repository_selection;
3157431575
delete response.data.total_count;
31576+
delete response.data.total_commits;
3157531577
const namespaceKey = Object.keys(response.data)[0];
3157631578
const data = response.data[namespaceKey];
3157731579
response.data = data;
@@ -31582,6 +31584,7 @@ function normalizePaginatedListResponse(response) {
3158231584
response.data.repository_selection = repositorySelection;
3158331585
}
3158431586
response.data.total_count = totalCount;
31587+
response.data.total_commits = totalCommits;
3158531588
return response;
3158631589
}
3158731590

@@ -31602,6 +31605,16 @@ function iterator(octokit, route, parameters) {
3160231605
url = ((normalizedResponse.headers.link || "").match(
3160331606
/<([^<>]+)>;\s*rel="next"/
3160431607
) || [])[1];
31608+
if (!url && "total_commits" in normalizedResponse.data) {
31609+
const parsedUrl = new URL(normalizedResponse.url);
31610+
const params = parsedUrl.searchParams;
31611+
const page = parseInt(params.get("page") || "1", 10);
31612+
const per_page = parseInt(params.get("per_page") || "250", 10);
31613+
if (page * per_page < normalizedResponse.data.total_commits) {
31614+
params.set("page", String(page + 1));
31615+
url = parsedUrl.toString();
31616+
}
31617+
}
3160531618
return { value: normalizedResponse };
3160631619
} catch (error) {
3160731620
if (error.status !== 409) throw error;
@@ -31796,6 +31809,8 @@ var paginatingEndpoints = (/* unused pure expression or super */ null && ([
3179631809
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
3179731810
"GET /repos/{owner}/{repo}/commits/{ref}/status",
3179831811
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
31812+
"GET /repos/{owner}/{repo}/compare/{basehead}",
31813+
"GET /repos/{owner}/{repo}/compare/{base}...{head}",
3179931814
"GET /repos/{owner}/{repo}/contributors",
3180031815
"GET /repos/{owner}/{repo}/dependabot/alerts",
3180131816
"GET /repos/{owner}/{repo}/dependabot/secrets",

action/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)