Further WF improvements
This commit is contained in:
parent
5ff8c369be
commit
7ac2c26759
6
.github/workflows/close-discussion.yaml
vendored
6
.github/workflows/close-discussion.yaml
vendored
@ -102,6 +102,8 @@ jobs:
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
//
|
||||||
|
try {
|
||||||
const discussionResponse = await graphqlWithAuth(discussionQuery, {
|
const discussionResponse = await graphqlWithAuth(discussionQuery, {
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
@ -113,6 +115,10 @@ jobs:
|
|||||||
console.log("Failed to fetch discussion GraphQL ID.");
|
console.log("Failed to fetch discussion GraphQL ID.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Discussion not found or error occurred while fetching discussion:", error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Post comment
|
// Post comment
|
||||||
const commentMutation = `
|
const commentMutation = `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user