Skip to content

Commit c3ab7fd

Browse files
fix: updating unit tests with mocking push octokit list commits
1 parent 70e22e9 commit c3ab7fd

File tree

3 files changed

+248
-119
lines changed

3 files changed

+248
-119
lines changed

src/action.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const getCommitDepth = () => {
2424

2525
const getPushEventCommits = async () => {
2626
const octokit = getOctokit(getInput('token'))
27-
const { owner, repo, before } = eventContext.issue
27+
const { owner, repo } = eventContext.issue
28+
const { before } = eventContext.payload
2829
const { data: commits } = await octokit.rest.repos.listCommits({
2930
owner,
3031
repo,

0 commit comments

Comments
 (0)