diff --git a/.github/workflows/opencode-pr-review.yml b/.github/workflows/opencode-pr-review.yml new file mode 100644 index 0000000..c5ae915 --- /dev/null +++ b/.github/workflows/opencode-pr-review.yml @@ -0,0 +1,21 @@ +# Copy to /.github/workflows/opencode-pr-review.yml +# Requires MODEL_API_KEY and BOT_TOKEN secrets on the target repo (Settings → +# Secrets → Actions). BOT_TOKEN is a PAT (classic `repo` scope) that lets the +# runner fetch this fleet's private config repo. Pin @main to a SHA if you prefer. +name: opencode-pr-review +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] +jobs: + review: + uses: arz282-ctrl/Git-Bot/.github/workflows/reusable-pr-review.yml@main + permissions: + contents: read + pull-requests: write + issues: read + with: + ref: ${{ github.event.pull_request.head.sha }} + base_ref: ${{ github.event.pull_request.base.ref }} + secrets: + model_api_key: ${{ secrets.MODEL_API_KEY }} + bot_token: ${{ secrets.BOT_TOKEN }} diff --git a/.github/workflows/opencode-triage.yml b/.github/workflows/opencode-triage.yml new file mode 100644 index 0000000..939669e --- /dev/null +++ b/.github/workflows/opencode-triage.yml @@ -0,0 +1,16 @@ +# Copy to /.github/workflows/opencode-triage.yml +# Requires MODEL_API_KEY and BOT_TOKEN secrets on the target repo. +# BOT_TOKEN is a PAT (classic `repo` scope) for the private fleet config repo. +name: opencode-triage +on: + issues: + types: [opened] +jobs: + triage: + uses: arz282-ctrl/Git-Bot/.github/workflows/reusable-triage.yml@main + permissions: + contents: read + issues: write + secrets: + model_api_key: ${{ secrets.MODEL_API_KEY }} + bot_token: ${{ secrets.BOT_TOKEN }}