Add reproduce-issue agent (#1497)

This commit is contained in:
Tom Rochette
2026-06-02 10:19:00 +03:00
committed by GitHub
parent 16294d84c2
commit aefbdbc52f
2 changed files with 88 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
name: reproduce-issue
on:
issues:
types: [labeled]
concurrency:
group: reproduce-issue-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
reproduce:
if: github.event.label.name == 'bug'
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Install opencode
run: curl -fsSL https://opencode.ai/install | bash
- name: Reproduce issue
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
opencode run --agent reproduce-issue "An issue in the OpenChamber repository has been labeled as a bug and needs reproduction. Reproduce it.
Issue: $ISSUE_URL
Title: $ISSUE_TITLE
$ISSUE_BODY"