Skip to content

Commit

Permalink
chore: fixed owner login string instead of object
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen authored and Keyrxng committed Aug 13, 2024
1 parent 6f846c7 commit a6b02e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function isCiGreen({ octokit, logger, env }: Context, sha: string,
}

function parseTarget({ payload }: Context, target: string) {
const owner = payload.repository.owner || "";
const owner = payload.repository.owner?.login || "";
const [orgParsed, repoParsed] = target.split("/");
let repoTarget = null;
if (orgParsed !== owner) {
Expand Down

0 comments on commit a6b02e4

Please sign in to comment.