diff options
Diffstat (limited to '.github/workflows/triage.yml')
| -rw-r--r-- | .github/workflows/triage.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 000000000..2900137f0 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,32 @@ +name: Issue Triage + +on: + issues: + types: [opened] + +jobs: + triage: + runs-on: blacksmith-4vcpu-ubuntu-2404 + permissions: + contents: read + issues: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install opencode + run: curl -fsSL https://opencode.ai/install | bash + + - name: Triage issue + env: + OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + run: | + opencode run --agent triage "The following issue was just opened, triage it: + + Title: ${{ github.event.issue.title }} + + ${{ github.event.issue.body }}" |
