Files
ARTEX/.github/workflows/bot.yml
BaaRai 7511937e82 Bot: label maintainer-opened issues, silently
Closes #15. Issues opened by the maintainer now go through the same
classification and label application but without the triage comment
or reaction. Visitors keep the full behavior; mentions and PR
first-looks stay maintainer-off.
2026-10-10 18:46:31 +02:00

35 lines
908 B
YAML

name: bot
on:
issues:
types: [opened]
issue_comment:
types: [created]
pull_request:
types: [opened]
permissions:
issues: write
pull-requests: write
contents: read
jobs:
reply:
# Issue opening is always handled (the maintainer gets silent labeling,
# visitors get the full triage). Comments and PRs serve visitors only:
# never react to the maintainer, to bots, or to itself.
if: >
github.event_name == 'issues' ||
(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