Skip to content

Commit c6fda59

Browse files
committed
ci: add automatic, scheduled, and manual PR labeling with labeler
1 parent d52eabc commit c6fda59

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
release:
2+
base-branch:
3+
- main

.github/workflows/label-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Label All PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize, ready_for_review]
6+
schedule:
7+
- cron: '0 0 */2 * *' # Every 2 days at 00:00 UTC
8+
workflow_dispatch: # Enables manual run from GitHub UI
9+
10+
jobs:
11+
label:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Label PRs
15+
uses: actions/labeler@v5
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
configuration-path: .github/labeler.yml
19+
enable-branch-labels: true

0 commit comments

Comments
 (0)