44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
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"
|