Skip to content

Commit

Permalink
Update with more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 18, 2024
1 parent c6ac0c0 commit 3d5231f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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.

2 changes: 2 additions & 0 deletions src/project-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ export async function projectLink(): Promise<void> {
// First, use the GraphQL API to request the template project's node ID.
const ownerResp = await octokit.graphql<UserResponse>(getOwnerQuery)

core.debug(`Owner Response: \n ${JSON.stringify(ownerResp, null, 2)}`)

if (!ownerResp?.data?.user?.id) {
throw new Error(`No owner found for ${projectOwner}`)
}
Expand Down

0 comments on commit 3d5231f

Please sign in to comment.