Skip to content

Commit bea7a4c

Browse files
committed
Refactor GraphQL query to correctly fetch IDs for both User and Bot suggested actors
1 parent 3376be2 commit bea7a4c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/create-issue-assigned-to-copilot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export async function createIssueWithCopilot(description: string): Promise<strin
2929
suggestedActors(capabilities: [CAN_BE_ASSIGNED], first: 100) {
3030
nodes {
3131
login
32-
id
32+
... on User { id }
33+
... on Bot { id }
3334
}
3435
}
3536
}

0 commit comments

Comments
 (0)