Skip to content

Commit

Permalink
Resolve some repository data fail + debug repo data
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 22, 2024
1 parent fb88b6b commit e4a1dd1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/project-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ export async function projectLink(): Promise<void> {
const ghToken = core.getInput('github-token', {required: true})

const ownerType = mustGetOwnerTypeQuery(github.context.payload.repository?.owner.type)
const ownerName = github.context.payload.repository?.owner.name ?? ''
const ownerName = github.context.payload.repository?.owner.login ?? ''
const ownerId = github.context.payload.repository?.owner.id ?? ''

core.debug(`Repository Payload: \n ${JSON.stringify(github.context.payload.repository, null, 2)}`)

if (!ownerName || !ownerId) {
throw new Error('Could not determine repository owner')
}
Expand Down

0 comments on commit e4a1dd1

Please sign in to comment.