From 3bcb9032d6c081b46e367bf33f3583be458de30a Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Mon, 25 May 2020 17:24:43 +0900 Subject: [PATCH] Add rebase slash command --- .github/workflows/slash-command-dispatch.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index 95b12d6..c9062d7 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -9,8 +9,19 @@ jobs: - name: Slash Command Dispatch uses: peter-evans/slash-command-dispatch@v1 with: - token: ${{ secrets.REPO_ACCESS_TOKEN }} + token: ${{ secrets.ACTIONS_BOT_TOKEN }} reaction-token: ${{ secrets.GITHUB_TOKEN }} - commands: test - permission: admin - named-args: true + config: > + [ + { + "command": "rebase", + "permission": "admin", + "repository": "peter-evans/slash-command-dispatch-processor", + "issue_type": "pull-request" + }, + { + "command": "test", + "permission": "admin", + "named_args": true + } + ]