mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-20 07:00:58 +08:00
Add triage and reply bot for issues and pull requests
Closes #10. A GitHub Action bot with no server: one triage comment per new issue (classification, missing-info list, grounded first answer), answers comments that @artex-bot, and a first-look summary checklist on opened pull requests. Comment-only, never an approving review. Skips the maintainer, bots, and itself; exits cleanly without the API key; all model inputs are size-capped.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: bot
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request:
|
||||
types: [opened]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
reply:
|
||||
# Serves visitors only: never react to the maintainer, to bots, or to itself.
|
||||
if: >
|
||||
github.actor != 'BaaRai' &&
|
||||
github.actor != 'github-actions[bot]' &&
|
||||
github.actor != 'dependabot[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: triage or reply
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_EVENT_PATH: ${{ github.event_path }}
|
||||
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
||||
run: bash .github/scripts/bot.sh
|
||||
Reference in New Issue
Block a user