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
Two separate comment workflows reimplement the same discussion comment mutation flow: fetch discussion ID, optionally thread via replyToId, build addDiscussionComment, and return the created comment metadata.
🔍 Duplicate Code Detected: Discussion Comment Mutation Flow
Analysis of commit bd0c249
Assignee:
@copilotSummary
Two separate comment workflows reimplement the same discussion comment mutation flow: fetch discussion ID, optionally thread via
replyToId, buildaddDiscussionComment, and return the created comment metadata.Duplication Details
Pattern: shared discussion comment creation logic
actions/setup/js/add_comment.cjs(lines 359-414)actions/setup/js/add_reaction_and_edit_comment.cjs(lines 217-283)Impact Analysis
resolveTopLevelDiscussionCommentId.Refactoring Recommendations
createDiscussionCommenthelper that accepts the comment body and optionalreplyToId.Analysis Metadata
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.