Skip to content

Adapt reflection api example to emit json, and replace the existing json reflection dump logic. #2230

Adapt reflection api example to emit json, and replace the existing json reflection dump logic.

Adapt reflection api example to emit json, and replace the existing json reflection dump logic. #2230

name: Slash Command Dispatch
on:
issue_comment:
types: [created]
jobs:
slashCommandDispatch:
runs-on: ubuntu-latest
steps:
- name: Slash Command Dispatch
id: scd
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
reaction-token: ${{ secrets.SLANGBOT_PAT }}
issue-type: pull-request
config: >
[
{
"command": "format",
"permission": "none",
"issue_type": "pull-request"
},
{
"command": "regenerate-toc",
"permission": "none",
"issue_type": "pull-request"
}
]
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.SLANGBOT_PAT }}
comment-id: ${{ github.event.comment.id }}
body: |
> ${{ steps.scd.outputs.error-message }}