Skip to content

Commit 0a15717

Browse files
committed
temp debug
1 parent e77f7d2 commit 0a15717

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/adapter/get-prs-associated-with-commit.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,16 @@ export default async function getPullRequestsAssociatedWithCommits(
1313
commit_sha: sha
1414
})
1515
core.debug(`Used url to fetch associated PRs: ${result.url}`)
16+
const triggeredFromPR =
17+
github.context.eventName === 'pull_request' ||
18+
github.context.eventName === 'pull_request_target'
19+
core.info(
20+
`triggeredFromPR: ${triggeredFromPR}, owner: ${github.context.repo.owner}, repo: ${github.context.repo.repo}, sha: ${sha}`
21+
)
22+
if (triggeredFromPR) {
23+
core.info(
24+
`triggeredFromPR: ${triggeredFromPR}, owner: ${github.context.payload.pull_request?.head.repo.owner.login}, repo: ${github.context.payload.pull_request?.head.repo.name}, sha: ${sha}`
25+
)
26+
}
1627
return result.data
1728
}

0 commit comments

Comments
 (0)