Skip to content

Let the GitHub client react to a comment - #755

Merged
czpython merged 1 commit into
mainfrom
github-comment-reaction
Sep 29, 2026
Merged

czpython merged 1 commit into
mainfrom
github-comment-reaction

Conversation

@czpython

@czpython czpython commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Apps that a PR comment starts want to acknowledge the command as soon as they accept it, before any sandbox boots. GitHubClient had no reaction call, so an app had to mint a token and open its own httpx client for one POST.

  • GitHubClient.create_reaction(repo, comment_id, content) reacts to a top-level comment as the App, next to create_comment, with the same 401 retry.
  • GitHub keeps one reaction per App and content, so a webhook redelivery or a repeated command adds nothing.

@czpython
czpython enabled auto-merge (squash) September 29, 2026 15:30
@czpython
czpython merged commit 37a80f1 into main Sep 29, 2026
3 checks passed
@czpython
czpython deleted the github-comment-reaction branch September 29, 2026 15:35
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