Skip to content
20 linesCodeBlameRaw
1name: Comment commands
2on:
3 issue_comment:
4 types: [created, edited]
5 issues:
6 types: [opened, labeled]
7jobs:
8 respond:
9 if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/retest') }}
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/github-script@v7
13 with:
14 script: |
15 await github.rest.reactions.createForIssueComment({
16 owner: context.repo.owner,
17 repo: context.repo.repo,
18 comment_id: context.payload.comment.id,
19 content: 'rocket',
20 })