[PR #4828] add optional prompt Input to Github Action #11135

Closed
opened 2026-02-16 18:15:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4828

State: closed
Merged: Yes


Bringing part of the idea from https://github.com/sst/opencode/pull/4807

This adds a new input to github action prompt, so we can override it... this opens the possibility to do something like this:

name: opencode-auto-review

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

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

We could even ask on opencode github install if they want to install this action too, right?

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4828 **State:** closed **Merged:** Yes --- Bringing part of the idea from https://github.com/sst/opencode/pull/4807 This adds a new input to github action `prompt`, so we can override it... this opens the possibility to do something like this: ```yaml name: opencode-auto-review on: pull_request: types: [opened, synchronize, reopened] jobs: review: runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - uses: actions/checkout@v4 - uses: sst/opencode/github@latest with: model: anthropic/claude-sonnet-4-5 prompt: | Review this pull request: - Check for code quality issues - Look for potential bugs - Suggest improvements ``` We could even ask on `opencode github install` if they want to install this action too, right?
yindo added the pull-request label 2026-02-16 18:15:55 -05:00
yindo closed this issue 2026-02-16 18:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11135