Automatically Label pre-commit-ci PRs (#3713)

This commit is contained in:
Bibo-Joshi 2023-05-20 10:27:51 +02:00 committed by GitHub
parent bb8b508a22
commit 5309cf6555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

9
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,9 @@
# Config file for workflows/labelling.yml
version: 1
labels:
- label: "dependencies"
authors: ["dependabot", "pre-commit-ci"]
- label: "code quality ✨"
authors: ["pre-commit-ci"]

17
.github/workflows/labelling.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: PR Labeler
on:
pull_request:
types: [opened]
jobs:
pre-commit-ci:
permissions:
contents: read # for srvaroa/labeler to read config file
pull-requests: write # for srvaroa/labeler to add labels in PR
runs-on: ubuntu-latest
steps:
- uses: srvaroa/labeler@v1.5.0
# Config file at .github/labeler.yml
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"