返回 DeepSeek-Reasonix
pr-auto-label.yml
根目录 / .github / workflows / pr-auto-label.yml
1 name: Auto-label PRs
2
3 # Apply area labels to PRs based on changed paths (see .github/labeler.yml).
4 # Complements the AI-based issue labeler (issue-auto-label.yml). Version (v1/v2)
5 # labels are handled separately by pr-version-label.yml.
6 #
7 # pull_request_target runs in the base repo context so it has the write token
8 # needed to label PRs from forks; actions/labeler only reads the diff file list
9 # (it never checks out or runs PR code), so this is safe.
10 on:
11 pull_request_target:
12 types: [opened, synchronize, reopened]
13
14 permissions:
15 contents: read
16 pull-requests: write
17
18 concurrency:
19 group: pr-autolabel-${{ github.event.pull_request.number }}
20 cancel-in-progress: true
21
22 jobs:
23 label:
24 runs-on: ubuntu-latest
25 steps:
26 - uses: actions/labeler@v7
27 with:
28 sync-labels: false
29
29 lines YAML