ci: auto triage issues

This commit is contained in:
Aiden Cline
2025-12-15 19:15:40 -06:00
parent 92fe927785
commit bfb254dac6
7 changed files with 181 additions and 63 deletions

32
.github/workflows/triage.yml vendored Normal file
View File

@@ -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 }}"