Skip to content

Commit

Permalink
More debug around creasted project
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 18, 2024
1 parent f317ce5 commit 610cbbd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 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.

6 changes: 4 additions & 2 deletions src/project-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,15 @@ export async function projectLink(): Promise<void> {
projectId = copyProjectTemplateResp.copyProjectV2.projectV2.id
}

core.info('Adding PR to project')
core.info(`Adding issue ${issue?.number} to project ${projectId}`)

const addResp = await octokit.graphql<ProjectAddItemResponse>(
`mutation addIssueToProject($input: AddProjectV2ItemByIdInput!) {
addProjectV2ItemById(input: $input) {
item {
id
title
url
}
}
}`,
Expand All @@ -278,7 +280,7 @@ export async function projectLink(): Promise<void> {
},
)

core.debug(`Search Response: \n ${JSON.stringify(addResp, null, 2)}`)
core.debug(`Add to Project Response: \n ${JSON.stringify(addResp, null, 2)}`)

core.setOutput('itemId', addResp.addProjectV2ItemById.item.id)
}
Expand Down

0 comments on commit 610cbbd

Please sign in to comment.