mirror of
https://github.com/moeru-ai/airi.git
synced 2026-05-17 04:20:26 +00:00
Some checks are pending
CI / Lint (push) Waiting to run
CI / Build Test (stage-tamagotchi) (push) Waiting to run
CI / Build Test (stage-web) (push) Waiting to run
CI / Build Test (ui-loading-screens) (push) Waiting to run
CI / Build Test (ui-transitions) (push) Waiting to run
CI / Type Check (push) Waiting to run
CI / Check Provenance (push) Waiting to run
Cloudflare Workers / Deploy - stage-web (push) Waiting to run
Update Nix pnpmDeps Hash / update (push) Waiting to run
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
name: Slash Command Dispatch
|
|
on:
|
|
issue_comment:
|
|
# Type "edited" added here for test purposes. Where possible, avoid
|
|
# using to prevent processing unnecessary events.
|
|
types: [created, edited]
|
|
|
|
jobs:
|
|
slashCommandDispatch:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
issues: read
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
# Advanced JSON configuration from file
|
|
# (These commands do not do anything and are just a reference example)
|
|
- name: Slash Command Dispatch (JSON file)
|
|
uses: peter-evans/slash-command-dispatch@v5
|
|
id: scd
|
|
with:
|
|
token: ${{ secrets.PAT_SLASH_COMMAND_DISPATCH }}
|
|
reactions: false
|
|
config-from-file: .github/slash-command-dispatch.json
|
|
|
|
- name: Edit comment with error message
|
|
if: steps.scd.outputs.error-message
|
|
uses: peter-evans/create-or-update-comment@v5
|
|
with:
|
|
comment-id: ${{ github.event.comment.id }}
|
|
body: |
|
|
> ${{ steps.scd.outputs.error-message }}
|