From e7bdeb49b9464d7318967a2e2242a81d6b93b84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 7 Apr 2021 14:46:21 +0200 Subject: [PATCH] github: Fix slash-command-action usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `/test-kata-deploy` command does **not** work, and the output returned is: ``` Error: Comment didn't contain a valid slash command ``` So, why does this happen? This is the regex used: `^\/([\w]+)\b *(.*)?$`, being the important part of the command "\/([\w]+)\b", with the rest being arguments to it. Okay, `\w` is the key here, as `\w` means: a-z, A-Z, 0-9, including the _. Our command is `/test-kata-deploy`, and `-` is not present as part of `\w`. Knowing this we need to update the command to something like: `/test_kata_deploy` Fixes: #1645 Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 7873b7a1f9b0cb8554f485e5ee3f6a579692d2dc) --- .github/workflows/kata-deploy-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kata-deploy-test.yaml b/.github/workflows/kata-deploy-test.yaml index 46de24f438..228e2246ec 100644 --- a/.github/workflows/kata-deploy-test.yaml +++ b/.github/workflows/kata-deploy-test.yaml @@ -14,7 +14,7 @@ jobs: uses: kata-containers/slash-command-action@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - command: "test-kata-deploy" + command: "test_kata_deploy" reaction: "true" reaction-type: "eyes" allow-edits: "false"