Update add_reaction job to always create new comments and add comment-repo output#1809
Merged
Update add_reaction job to always create new comments and add comment-repo output#1809
Conversation
- Modified add_reaction_and_edit_comment.cjs to always create new comments instead of editing existing ones - Added comment-repo output to all comment creation scenarios - Updated compiler.go to include comment_repo in activation job outputs - Added comprehensive tests for the new behavior - All tests pass (JavaScript and Go) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update add_reaction job to always create new comments
Update add_reaction job to always create new comments and add comment-repo output
Oct 16, 2025
pelikhan
reviewed
Oct 16, 2025
| eventTypeDescription = "event"; | ||
| } | ||
|
|
||
| const workflowLinkText = `Agentic [${workflowName}](${runUrl}) triggered by this ${eventTypeDescription}`; |
Collaborator
There was a problem hiding this comment.
@copilot add a dot at the end of the sentence.
Contributor
Author
There was a problem hiding this comment.
Added periods at the end of the workflow link text sentences in commit 0c7e9a3.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Now creates new comments on discussion threads for discussion_comment events - Uses GraphQL API to add discussion comments (same as discussion events) - Updated test to verify new comment creation behavior - All 534 JavaScript tests pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Added GraphQL comment creation support for discussion_comment events in commit 9ea5fa9. Discussion events already had full GraphQL support. Both now create new comments on discussion threads using the addDiscussionComment mutation. |
pelikhan
approved these changes
Oct 16, 2025
Contributor
|
Agentic Changeset Generator triggered by this pull request. |
pelikhan
approved these changes
Oct 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Complete: Update add_reaction Job to Always Create New Comments
Changes Required
Summary of Changes
JavaScript Changes (
add_reaction_and_edit_comment.cjs):comment-repooutput containing the repository inowner/repoformataddDiscussionCommentmutationGo Changes (
compiler.go):comment_repoto the activation job outputs mapTest Updates:
comment-repooutputcomment_repoin the generated YAMLVerification
✅ No GET or PATCH operations remain in generated lock files
✅
comment-repooutput present in all lock files✅ All workflows recompiled with updated JavaScript
✅ Behavior verified: comments are always created (never edited)
✅ Proper punctuation added to all workflow link text
✅ Full GraphQL support for both discussion and discussion_comment events
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.