triage.yml 922 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Issue Triage
  2. on:
  3. issues:
  4. types: [opened]
  5. jobs:
  6. triage:
  7. runs-on: blacksmith-4vcpu-ubuntu-2404
  8. permissions:
  9. contents: read
  10. issues: write
  11. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v4
  14. with:
  15. fetch-depth: 1
  16. - name: Setup Bun
  17. uses: ./.github/actions/setup-bun
  18. - name: Install opencode
  19. run: curl -fsSL https://opencode.ai/install | bash
  20. - name: Triage issue
  21. env:
  22. OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
  23. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  24. ISSUE_NUMBER: ${{ github.event.issue.number }}
  25. ISSUE_TITLE: ${{ github.event.issue.title }}
  26. ISSUE_BODY: ${{ github.event.issue.body }}
  27. run: |
  28. opencode run --agent triage "The following issue was just opened, triage it:
  29. Title: $ISSUE_TITLE
  30. $ISSUE_BODY"