Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Aug 16, 2021
1 parent 6ccacb5 commit 222f768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discussions-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ async function addLabel(discussion: Discussion, labelName: string, description?:
labelID = existingLabel.label.id;
} else {
const color = "eeeeee";
const responseSubquery = "labelable { ... on Discussion { id } }";
const responseSubquery = "label { id }";
const newLabel = await client.mutate(createMutation("createLabel" as any, { name: labelName, repositoryId: existingLabel.repoID, color, description }, responseSubquery)) as any;
labelID = newLabel.data.labelable.id;
labelID = newLabel.data.label.id;
}
await client.mutate(createMutation<any>("addLabelsToLabelable" as any, { labelableId: discussion.node_id, labelIds: [labelID] }));
}
Expand Down

0 comments on commit 222f768

Please sign in to comment.