-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (27 loc) · 836 Bytes
/
labeler.yml
File metadata and controls
32 lines (27 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Auto-label PRs based on changed files
name: "Pull Request Labeler"
on:
pull_request_target:
types: [opened, synchronize]
permissions:
contents: read
pull-requests: write
jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Auto Label PR
uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
sync-labels: false
continue-on-error: true # Don't fail the workflow if labeling fails
- name: Log labeling result
if: failure()
run: echo "⚠️ Auto-labeling failed - labels may need to be created manually"