From e63289f641f93f9d1544f5496542def4c325ce8a Mon Sep 17 00:00:00 2001 From: surchs Date: Tue, 14 May 2024 21:25:44 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/workfl?= =?UTF-8?q?ows/'=20with=20remote=20'template=5Fworkflows/project=5Fautomat?= =?UTF-8?q?ion/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/handle_external_pr.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/handle_external_pr.yml b/.github/workflows/handle_external_pr.yml index 0b38841..57dd2fb 100644 --- a/.github/workflows/handle_external_pr.yml +++ b/.github/workflows/handle_external_pr.yml @@ -18,3 +18,13 @@ jobs: run: gh pr edit ${{ github.event.pull_request.number }} -R ${{ github.repository }} --add-label "_community" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + handle_precommit_pr: + if: contains(github.event.pull_request.title, '[pre-commit.ci]') + runs-on: ubuntu-latest + + steps: + - name: Label pull request with "_bot" + run: gh pr edit ${{ github.event.pull_request.number }} -R ${{ github.repository }} --add-label "_bot" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}