You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a5d8b7d
Browse filesBrowse the repository at this point in the historyBrowse files
consterror=`Plain string label names are not permitted when issue_intent is explicitly enabled. Provide label objects with a "name" field and intent metadata (rationale, confidence). Plain labels: ${plainStringLabels.map(l=>JSON.stringify(l)).join(", ")}`;
108
+
core.warning(error);
109
+
return{success: false, error };
110
+
}
111
+
// In strict mode, objects without rationale and confidence are also rejected
consterror=`Label objects must include both "rationale" and "confidence" when issue_intent is explicitly enabled. Missing metadata on: ${missingMetadataLabels.map(l=>JSON.stringify(l.name)).join(", ")}`;
* @param {string} endpoint - The GitHub API endpoint to create the comment (or special format for discussions)
243
+
* @param {{ route: string, params: Record<string, unknown> } | string} endpoint - Typed route info for REST events, or special format string for discussions
215
244
* @param {string} runUrl - The URL of the workflow run
216
245
* @param {string} eventName - The event type (to determine the comment text)
217
246
* @param {{
@@ -251,6 +280,9 @@ async function addCommentWithWorkflowLink(endpoint, runUrl, eventName, invocatio
@@ -409,7 +417,7 @@ async function postDiscussionComment(discussionNumber, commentBody, replyToNodeI
409
417
410
418
/**
411
419
* Add a comment with a workflow run link
412
-
* @param {string} endpoint - The GitHub API endpoint to create the comment (or special format for discussions)
420
+
* @param {{ route: string, params: Record<string, unknown> } | string} endpoint - Typed route info for REST events, or special format string for discussions ("discussion:NUMBER" or "discussion_comment:NUMBER:COMMENT_ID")
413
421
* @param {string} runUrl - The URL of the workflow run
414
422
* @param {string} eventName - The event type (to determine the comment text)
415
423
* @param {{
@@ -426,12 +434,18 @@ async function addCommentWithWorkflowLink(endpoint, runUrl, eventName, invocatio
0 commit comments