Skip to content

Commit

Permalink
fix: selecting wrong array index
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Nov 20, 2023
1 parent 1ea2e57 commit cf70990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function GetCommitSHAFromLatestWorkflowTime(ProgramOptions: Types.P
MatchedCommitTimeAddress++
}

return GitHubListCommitsRaw[MatchedCommitTimeAddress].sha
return GitHubListCommitsRaw[MatchedCommitTimeAddress - 1].sha
}

if (!ProgramOptions.shouldUseApi) {
Expand All @@ -54,7 +54,7 @@ export async function GetCommitSHAFromLatestWorkflowTime(ProgramOptions: Types.P
MatchedCommitTimeAddress++
}

return GitLogRaw[MatchedCommitTimeAddress].hash
return GitLogRaw[MatchedCommitTimeAddress - 1].hash
}
}

Expand Down

0 comments on commit cf70990

Please sign in to comment.