Skip to content

Commit

Permalink
Fix get commit function that was returning an array
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Dec 6, 2024
1 parent 9c9bcce commit 1667e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type Commit = components['schemas']['commit'];
// https://docs.github.com/en/rest/commits/commits#get-a-commit
export async function getCommit(context: any, sha: string): Promise<Commit> {
const request = context.repo({
sha,
ref: sha,
});
const { data: commit } = await context.octokit.rest.repos.getCommit(request);
return commit;
Expand Down

0 comments on commit 1667e1c

Please sign in to comment.