Skip to content

feat: Add automatic standard CI variable resolution #1

feat: Add automatic standard CI variable resolution

feat: Add automatic standard CI variable resolution #1

name: Slash Command Dispatch
on:
issue_comment:
types: [created]
permissions:
contents: read
issues: write
pull-requests: write
actions: write
jobs:
slashCommandDispatch:
name: Dispatch
runs-on: ubuntu-24.04
steps:
# Use pre-made action (handles private repo auth):
- name: Get PR Info
if: ${{ github.event.issue.pull_request }}
id: pr-info
uses: cloudposse-github-actions/[email protected]
with:
id: ${{ github.event.issue.number }}
- name: Slash Command Dispatch (Workflow)
id: scd
uses: peter-evans/slash-command-dispatch@v3
with:
token: ${{ github.token }}
permission: write
dispatch-type: workflow
issue-type: both
commands: |
ai-fix
ai-ask
static-args: |
comment-id=${{ github.event.comment.id }}
issue-number=${{ github.event.issue.number }}
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ github.event.comment.id }}
body: |
> Error: ${{ steps.scd.outputs.error-message }}