diff --git a/.github/workflows/label-precommit-prs.yml b/.github/workflows/label-precommit-prs.yml new file mode 100644 index 00000000..1f7ab490 --- /dev/null +++ b/.github/workflows/label-precommit-prs.yml @@ -0,0 +1,18 @@ +name: Label Pre-Commit PRs + +on: + pull_request: + types: [opened, synchronize] + +jobs: + label: + if: github.actor == 'pre-commit-ci[bot]' + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add "no releasenotes" label + uses: actions-ecosystem/action-add-labels@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: no releasenotes