Skip to content

Commit 04006e0

Browse files
michaelosthegericardoV94
authored andcommitted
Automatically label PRs based on modified files
Closes #6139
1 parent 534b89b commit 04006e0

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Add 'maintenance` label to any change to *.yml files
2+
maintenance:
3+
- any: ['**.yml', '']
4+
5+
# Add "no releasenotes" label if only the pre-commit config changed
6+
no releasenotes:
7+
- any: []
8+
all: ['.pre-commit-config.yml']

.github/workflows/autoupdate-pre-commit-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ jobs:
2929
pre-commit autoupdate || (exit 0);
3030
pre-commit run -a || (exit 0);
3131
COMMIT_MESSAGE: "⬆️ UPGRADE: Autoupdate pre-commit config"
32+
COMMIT_NAME: "pymc-bot"
33+
COMMIT_EMAIL: "[email protected]"
3234
PR_BRANCH_NAME: "pre-commit-config-update-${PR_ID}"
3335
PR_TITLE: "⬆️ UPGRADE: Autoupdate pre-commit config"

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v4
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)