Skip to content

Add comment reactions support#33

Merged
andrew merged 2 commits intomainfrom
add-comment-reactions
Mar 11, 2026
Merged

Add comment reactions support#33
andrew merged 2 commits intomainfrom
add-comment-reactions

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Mar 11, 2026

Add ListReactions and AddReaction methods to both IssueService and PullRequestService, with a Reaction type holding ID, User, and Content fields.

Backend implementations:

  • GitHub: uses issue comment reactions API via go-github SDK
  • GitLab: uses award emoji on notes API, routing to issue or merge request note endpoints
  • Gitea: uses issue comment reactions API via Gitea SDK
  • Bitbucket: returns ErrNotSupported

CLI commands added under both issue and pr:

  • reactions <number> --comment <id> to list reactions
  • react <number> --comment <id> --reaction <type> to add a reaction

Closes #29

andrew added 2 commits March 11, 2026 11:09
Add ListReactions and AddReaction methods to IssueService and
PullRequestService with implementations for all backends. GitHub and
Gitea use the issue comment reactions API, GitLab uses award emoji on
notes, and Bitbucket returns ErrNotSupported.

CLI commands: issue react, issue reactions, pr react, pr reactions.

Closes #29
@andrew andrew force-pushed the add-comment-reactions branch from 977343a to c230c49 Compare March 11, 2026 11:09
@andrew andrew merged commit cb8798d into main Mar 11, 2026
4 checks passed
@andrew andrew deleted the add-comment-reactions branch March 11, 2026 11:13
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.

Comment reactions

1 participant