mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 21:17:28 +00:00
Merge pull request #12 from BaaRai/bot/issue-pr-bot
Add triage and reply bot for issues and pull requests
This commit is contained in:
commit
3eebf02596
2 changed files with 153 additions and 0 deletions
31
.github/workflows/bot.yml
vendored
Normal file
31
.github/workflows/bot.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue