From 3d653df6ee76adc2467abd09033cb96c3f082856 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Wed, 14 Aug 2024 03:46:05 +0900 Subject: [PATCH] chore: fixed owner login string instead of object --- src/helpers/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/github.ts b/src/helpers/github.ts index cbfa8212..1eb847fb 100644 --- a/src/helpers/github.ts +++ b/src/helpers/github.ts @@ -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) {