Skip to content

Commit 76907e7

Browse files
authored
fix: fix commitExists() function for diff bigger than 30 commits (default per_page) (#136)
1 parent fd23edd commit 76907e7

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38048,6 +38048,7 @@ function commitExists(octokit, branchName, commitSha) {
3804838048
owner,
3804938049
repo,
3805038050
sha: branchName,
38051+
per_page: 100,
3805138052
});
3805238053
return commits.data.some((commit) => commit.sha === commitSha);
3805338054
}

find-successful-workflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ async function commitExists(
259259
owner,
260260
repo,
261261
sha: branchName,
262+
per_page: 100,
262263
});
263264

264265
return commits.data.some(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"license": "MIT",
55
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action",
66
"scripts": {

0 commit comments

Comments
 (0)