chore: rework the labels and label pull requests automatically (#116)
This commit is contained in:
1 parent
f8a6ec2799
commit
8be1a4e9e8
4 files changed
+110
-2
No files matched your search
@@ -0,0 +1,27 @@
|
||||
name: Label
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ opened, edited, reopened, synchronize ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: label-${{ github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
label:
|
||||
name: Type and area
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Never check out the pull request head in this job. pull_request_target
|
||||
# runs with a write token even for forks, so running their code here would
|
||||
# hand the token to the fork.
|
||||
- name: Apply the labels
|
||||
uses: actions/labeler@v5
|
||||
with:
|
||||
configuration-path: .github/labeler.yml
|
||||
sync-labels: true
|
||||
Reference in new issue
Block a user