chore(ci): basic ChatOps

This commit is contained in:
Neko Ayaka
2026-03-29 16:07:42 +08:00
parent fbf6a05f1e
commit 94c69c0bd6
4 changed files with 91 additions and 0 deletions
@@ -0,0 +1,21 @@
name: Handle /hold command
on:
repository_dispatch:
types: [hold-command]
jobs:
handle:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v8
with:
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['pr-reviews/hold']
})