Skip to content

Commit

Permalink
fix: fix commitExists() function for diff bigger than 30 commits (def…
Browse files Browse the repository at this point in the history
…ault per_page) (#136)
  • Loading branch information
korniychuk authored Dec 14, 2023
1 parent fd23edd commit 76907e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38048,6 +38048,7 @@ function commitExists(octokit, branchName, commitSha) {
owner,
repo,
sha: branchName,
per_page: 100,
});
return commits.data.some((commit) => commit.sha === commitSha);
}
Expand Down
1 change: 1 addition & 0 deletions find-successful-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ async function commitExists(
owner,
repo,
sha: branchName,
per_page: 100,
});

return commits.data.some(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 76907e7

Please sign in to comment.