From 008e789cb17b9ef31e9c363caaea61d5424a2ee4 Mon Sep 17 00:00:00 2001 From: Anton Korniychuk Date: Thu, 14 Dec 2023 19:40:24 +0800 Subject: [PATCH] fix: fix commitExists() function for diff bigger than 30 commits (default per_page) build bump version --- dist/index.js | 1 + find-successful-workflow.ts | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 9c49a01..974c09b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38048,6 +38048,7 @@ function commitExists(octokit, branchName, commitSha) { owner, repo, sha: branchName, + per_page: 100, }); return commits.data.some((commit) => commit.sha === commitSha); } diff --git a/find-successful-workflow.ts b/find-successful-workflow.ts index bb52bb6..788cbcc 100644 --- a/find-successful-workflow.ts +++ b/find-successful-workflow.ts @@ -259,6 +259,7 @@ async function commitExists( owner, repo, sha: branchName, + per_page: 100, }); return commits.data.some( diff --git a/package.json b/package.json index 14d3f7f..371a294 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "version": "4.0.3", + "version": "4.0.4", "license": "MIT", "description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action", "scripts": {