From a1032dd738305b56bd2df5b654dd8c5296408848 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 09:05:12 +0800 Subject: Improvements to formatting bot (#5421) * Use github token for formatting command dispatch * Open PR instead of committing directly when formatting * Add --no-version-check option to formatting script * Colorful diff output for cmake formatting --- .github/workflows/slash-command-dispatch.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to '.github/workflows/slash-command-dispatch.yml') diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index c4c9a7ae7..2e72c3bf4 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -12,14 +12,9 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} reaction-token: ${{ secrets.SLANGBOT_PAT }} - config: > - [ - { - "command": "format", - "permission": "none", - "issue_type": "pull-request" - } - ] + issue-type: pull-request + commands: | + format - name: Edit comment with error message if: steps.scd.outputs.error-message -- cgit v1.2.3