From 84c0e99d7c797bb8b5c79ba2aeeeed404045695f Mon Sep 17 00:00:00 2001 From: Sebastian Urchs Date: Mon, 20 May 2024 13:51:05 -0400 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/'=20(#314)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: surchs --- .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 }}