Implement slash command on GitHub Actions
Verified Environment Version image ubuntu-20.04 What to do Note github.event_name == 'issue_comment' Issue or Pull Request https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only Issue only: github.event_name == 'issue_comment' && !github.event.issue.pull_request Pull Request only: github.event_name == 'issue_comment' && github.event.issue.pull_request startsWith(github.event.comment.body, '/my-slash-command') Check if the comment starts with /my-slash-command Examples name: "Slash command" on: issue_comment: types: [created] jobs: slash-command: if: github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/my-slash-command') runs-on: ubuntu-20.04 env: REPO: ${{ github.repository }} ISSUE_NUMBER: ${{ github.event.issue.number }} COMMENT_ID: ${{ github....