From b499a14b17062257a41accc12e833f48f0a69409 Mon Sep 17 00:00:00 2001 From: Marc Sun <57196510+SunMarc@users.noreply.github.com> Date: Tue, 13 May 2025 19:07:17 +0200 Subject: [PATCH] Add style bot (#38102) add style bot --- .github/workflows/pr-style-bot.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/pr-style-bot.yml diff --git a/.github/workflows/pr-style-bot.yml b/.github/workflows/pr-style-bot.yml new file mode 100644 index 0000000000..9ca716ec50 --- /dev/null +++ b/.github/workflows/pr-style-bot.yml @@ -0,0 +1,19 @@ +# To run this bot, comment "@bot /style" on a PR +name: Style Bot + +on: + issue_comment: + types: [created] + +permissions: + contents: write + pull-requests: write + +jobs: + style: + uses: huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main + with: + python_quality_dependencies: "[quality]" + style_command_type: "default" + secrets: + bot_token: ${{ secrets.GITHUB_TOKEN }}