Skip to content

feat(examples): add comment-on-issue example - #19

Draft
rrdelaney wants to merge 1 commit into
masterfrom
ryan/rya-1-comment-on-an-issue-987c
Draft

feat(examples): add comment-on-issue example#19
rrdelaney wants to merge 1 commit into
masterfrom
ryan/rya-1-comment-on-an-issue-987c

Conversation

@rrdelaney

Copy link
Copy Markdown
Owner

Summary

  • Adds a minimal example (examples/comment-on-issue/) demonstrating how to create a comment on a Linear issue using the @linear/sdk
  • Covers the commentCreate mutation with issueId and body parameters
  • Includes a README with setup and usage instructions

Context

This addresses RYA-1 which asks to acknowledge the related issue RYA-2 by commenting on it. The example script shows how to use the SDK's commentCreate to post a comment on any issue by identifier (e.g. RYA-2) or UUID.

Test plan

  • Verify npx ts-node index.ts <issueId> <body> creates a comment when given a valid LINEAR_API_KEY
  • Confirm the example follows existing repo conventions

Add a minimal example demonstrating how to create a comment on a Linear
issue using the @linear/sdk. This covers the commentCreate mutation with
issueId and body parameters.

Closes RYA-1
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