ci: auto triage issues
This commit is contained in:
parent
92fe927785
commit
bfb254dac6
7 changed files with 181 additions and 63 deletions
32
.github/workflows/triage.yml
vendored
Normal file
32
.github/workflows/triage.yml
vendored
Normal 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 }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue