Skip to content

feat: update Linear ticket before opening PR#2

Merged
mr-j90 merged 1 commit intomasterfrom
zyx-77
Mar 19, 2026
Merged

feat: update Linear ticket before opening PR#2
mr-j90 merged 1 commit intomasterfrom
zyx-77

Conversation

@mr-j90
Copy link
Copy Markdown
Collaborator

@mr-j90 mr-j90 commented Mar 19, 2026

Summary

  • Added CreateComment(ctx, issueID, body string) error to the Linear client using the commentCreate GraphQL mutation
  • Updated both WORKFLOW.claude.md.example and WORKFLOW.md.example to include a new step (step 5) instructing agents to post a comment on the Linear ticket with implementation notes before opening the PR
  • Added internal/linear/client_test.go with 4 test cases covering the new method

Why

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 handled
  • TestCreateComment_GraphQLError — verifies GraphQL errors are surfaced
  • TestCreateComment_SuccessFalse — verifies success=false returns an error
  • TestCreateComment_HTTPError — verifies non-200 HTTP responses return an error
  • All existing tests pass

Closes ZYX-77

🤖 Generated with Claude Code

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>
@linear
Copy link
Copy Markdown

linear Bot commented Mar 19, 2026

@mr-j90 mr-j90 merged commit b311bb2 into master Mar 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant