Further WF improvements

This commit is contained in:
Michel Roegl-Brunner 2025-04-23 09:24:39 +02:00
parent 5ff8c369be
commit 7ac2c26759

View File

@ -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 = `