mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
Automatically Label pre-commit-ci
PRs (#3713)
This commit is contained in:
parent
bb8b508a22
commit
5309cf6555
2 changed files with 26 additions and 0 deletions
9
.github/labeler.yml
vendored
Normal file
9
.github/labeler.yml
vendored
Normal 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
17
.github/workflows/labelling.yml
vendored
Normal 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 }}"
|
Loading…
Reference in a new issue