Skip to content

Commit 8341859

Browse files
authored
build: fix initial reaction by not checking comment for equality
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 5cfc390 commit 8341859

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: .github/workflows/slash_commands.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ jobs:
6161
- name: 'Add initial reaction'
6262
run: |
6363
COMMENT="${{ github.event.comment.body }}"
64-
if [[ $COMMENT == "/stdlib help" || \
65-
$COMMENT == "/stdlib check-files" || \
66-
$COMMENT == "/stdlib update-copyright-years" || \
67-
$COMMENT == "/stdlib lint-autofix" || \
68-
$COMMENT == "/stdlib merge" || \
69-
$COMMENT == "/stdlib rebase"
70-
]]; then
64+
if [[ $COMMENT =~ ^/stdlib\ (help|check-files|update-copyright-years|lint-autofix|merge|rebase) ]]; then
7165
curl -X POST \
7266
-H "Accept: application/vnd.github.v3+json" \
7367
-H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}" \

0 commit comments

Comments
 (0)