Skip to content

Commit

Permalink
Fixes : remove label from discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
aialok committed May 19, 2024
1 parent 99a4dbc commit 8991022
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ocwm-issue-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
edges {
node {
... on Discussion {
id
title
body
resourcePath
Expand Down Expand Up @@ -117,6 +118,8 @@ jobs:
console.log(`PATCH /repos/${process.env.OWNER}/${process.env.REPO}/issues/${workMeetings[0].number}`);
const { data: label } = await mygithub.request(`GET /repos/${process.env.OWNER}/${process.env.REPO}/labels/${process.env.AGENDA_LABEL}`);
await mygithub.request(`PATCH /repos/${process.env.OWNER}/${process.env.REPO}/issues/${workMeetings[0].number}`, {
body: parsed,
milestone: null,
Expand All @@ -126,7 +129,7 @@ jobs:
for (let i = 0; i < discussions.length; i++) {
await mygithub.graphql(`
mutation {
removeLabelsFromLabelable(input: {labelIds: ["${process.env.AGENDA_LABEL_ID}"], labelableId: "${discussions[i].node.node_id}"}) {
removeLabelsFromLabelable(input: {labelIds: ["${label.node_id}"], labelableId: "${discussions[i].node.id}"}) {
clientMutationId
}
}
Expand Down

0 comments on commit 8991022

Please sign in to comment.