Skip to content

Commit

Permalink
Add to existing Project working as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Feb 17, 2024
1 parent 9cdd144 commit 6056663
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 41 deletions.
66 changes: 26 additions & 40 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.

4 changes: 4 additions & 0 deletions src/project-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ interface ProjectAddItemResponse {
}
}

/*
interface ProjectV2AddDraftIssueResponse {
addProjectV2DraftIssue: {
projectItem: {
id: string
}
}
}
*/

export async function projectLink(): Promise<void> {
const ghToken = core.getInput('github-token', {required: true})
Expand Down Expand Up @@ -200,6 +202,8 @@ export async function projectLink(): Promise<void> {
},
)

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

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

Expand Down

0 comments on commit 6056663

Please sign in to comment.