mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-10 20:21:17 +00:00
Apply suggestions from code review
Co-authored-by: Matt B <9885259+Mattamorphic@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ interface ProjectNodeIDResponse {
|
||||
|
||||
interface ProjectAddItemResponse {
|
||||
addProjectV2ItemById: {
|
||||
projectItem: {
|
||||
item: {
|
||||
id: string
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ export async function addToProject(): Promise<void> {
|
||||
const addResp = await octokit.graphql<ProjectAddItemResponse>(
|
||||
`mutation addIssueToProject($input: AddProjectV2ItemByIdInput!) {
|
||||
addProjectV2ItemById(input: $input) {
|
||||
projectItem {
|
||||
item {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -113,7 +113,7 @@ export async function addToProject(): Promise<void> {
|
||||
}
|
||||
)
|
||||
|
||||
core.setOutput('itemId', addResp.addProjectV2ItemById.projectItem.id)
|
||||
core.setOutput('itemId', addResp.addProjectV2ItemById.item.id)
|
||||
}
|
||||
|
||||
export function mustGetOwnerTypeQuery(ownerType?: string): 'organization' | 'user' {
|
||||
|
||||
Reference in New Issue
Block a user