Skip to content

Commit 53a3667

Browse files
committed
build: leave comment if command is not recognized
1 parent a8b02bd commit 53a3667

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/slash_commands.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
-H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}" \
5757
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
5858
-d '{"content":"eyes"}'
59+
else
60+
curl -X POST \
61+
-H "Accept: application/vnd.github.v3+json" \
62+
-H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}" \
63+
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" \
64+
-d '{"body":"@${{ github.event.comment.user.login }}, slash command not recognized. Please use `/stdlib help` to view available commands."}'
5965
fi
6066
6167
# Define a job for checking for required files:

0 commit comments

Comments
 (0)