Skip to content

feat(github): add review thread replies#26689

Closed
thomaseude wants to merge 4 commits into
anomalyco:devfrom
thomaseude:reply-to-review-thread
Closed

feat(github): add review thread replies#26689
thomaseude wants to merge 4 commits into
anomalyco:devfrom
thomaseude:reply-to-review-thread

Conversation

@thomaseude

@thomaseude thomaseude commented May 10, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #26691

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds an opt-in reply_to_review_thread input for the GitHub Action.

When enabled and opencode is triggered from a pull_request_review_comment event, the action creates its working/final response as a reply in the triggering review comment thread instead of posting a top-level PR comment. Existing issue and PR comment behavior remains unchanged by default.

How did you verify your code works?

  • Ran git diff --check
  • Reviewed the GitHub REST calls used for creating and updating pull request review comment replies

I could not run the full Bun typecheck locally because Bun is not installed in this environment.

Screenshots / recordings

Not applicable. This is a GitHub Action behavior change, not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Add review thread replies for GitHub action doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 10, 2026
@thomaseude

thomaseude commented May 10, 2026

Copy link
Copy Markdown
Author

Related context I found while checking for overlap:

@thomaseude thomaseude changed the title Add review thread replies for GitHub action feat(github): add review thread replies May 10, 2026
@github-actions github-actions Bot removed needs:title needs:compliance This means the issue will auto-close after 2 hours. labels May 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@SameenaK1

Copy link
Copy Markdown

HI @thomaseude
are you still planning to complete this, I was looking out for this feature

@thomaseude

Copy link
Copy Markdown
Author

I'll try to reopen but I think that need more reactions to be approve by opencode team

@chAwater

Copy link
Copy Markdown

Hi, @SameenaK1

I opened a new issue and PR to fix this

A quick 👍 on my PR would be appreciated: PRs with fewer than 2 positive reactions get auto-closed after a month.


Hi, @thomaseude

I think the github/index.ts is no longer what the GitHub Action executes, due to the github/action.yml

-      run: bun ${GITHUB_ACTION_PATH}/index.ts
+      run: opencode github run

so I made new changes and refer your PR and code. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Action should reply in review comment threads

3 participants