Skip to content

Commit

Permalink
fix: updating unit tests with mocking push octokit list commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Triplett committed Aug 20, 2024
1 parent 70e22e9 commit c3ab7fd
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 119 deletions.
3 changes: 2 additions & 1 deletion src/action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const getCommitDepth = () => {

const getPushEventCommits = async () => {
const octokit = getOctokit(getInput('token'))
const { owner, repo, before } = eventContext.issue
const { owner, repo } = eventContext.issue
const { before } = eventContext.payload
const { data: commits } = await octokit.rest.repos.listCommits({
owner,
repo,
Expand Down
Loading

0 comments on commit c3ab7fd

Please sign in to comment.