opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GitHub pull request event

Open dbpolito opened this issue 1 month ago • 2 comments

This is a follow up of: https://github.com/sst/opencode/pull/4828

So this add proper support for pull request events, allowing you do add automatic reviews for example:

name: opencode-review

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]

jobs:
  review:
    permissions:
      id-token: write
      contents: read
      pull-requests: read
      issues: read
    steps:
      - uses: actions/checkout@v4
      - uses: sst/opencode/github@latest
        with:
          model: anthropic/claude-opus-4-5
          prompt: |
            Review this pull request:
            - Check for code quality issues
            - Look for potential bugs
            - Suggest improvements

dbpolito avatar Dec 10 '25 19:12 dbpolito

It seems the action failed due to request timeout, doesn't seem related to this PR... but i can't retry the job...

dbpolito avatar Dec 10 '25 20:12 dbpolito

@rekram1-node i've fixed conflicts... lemme your thoughts or you wanna further discuss this on Discord

dbpolito avatar Dec 11 '25 16:12 dbpolito