Conversation
Add CreateComment to the Linear client and update workflow templates to direct agents to post implementation notes to the Linear ticket before creating a PR, ensuring reviewers have full context in both places. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
CreateComment(ctx, issueID, body string) errorto the Linear client using thecommentCreateGraphQL mutationWORKFLOW.claude.md.exampleandWORKFLOW.md.exampleto include a new step (step 5) instructing agents to post a comment on the Linear ticket with implementation notes before opening the PRinternal/linear/client_test.gowith 4 test cases covering the new methodWhy
Agents were creating PRs without leaving any notes on the Linear ticket, making it hard for reviewers to understand what was done and why. This ensures implementation notes land on the Linear issue before the PR is opened.
Test plan
TestCreateComment_Success— verifies correct GraphQL variables are sent and success is handledTestCreateComment_GraphQLError— verifies GraphQL errors are surfacedTestCreateComment_SuccessFalse— verifiessuccess=falsereturns an errorTestCreateComment_HTTPError— verifies non-200 HTTP responses return an errorCloses ZYX-77
🤖 Generated with Claude Code