Skip to content

Commit b93d5e1

Browse files
authored
Refactor PR autolabeler workflow configuration
1 parent fc7bced commit b93d5e1

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

‎.github/workflows/labeler.yml‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
name: PR Autolabeler
22

3-
on:
4-
pull_request_target:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
- edited
10-
113
permissions:
12-
contents: read
4+
contents: write
135
pull-requests: write
146

7+
on:
8+
# pull_request event is required for autolabeler
9+
pull_request:
10+
types: [opened, reopened, synchronize]
11+
1512
jobs:
16-
labeler:
17-
runs-on: ubuntu-24.04
18-
steps:
19-
- uses: actions/labeler@v5
20-
with:
21-
repo-token: ${{ secrets.GITHUB_TOKEN }}
22-
sync-labels: true
13+
draft-release:
14+
uses: commit-check/.github/.github/workflows/pr-labeler.yml@main

0 commit comments

Comments
 (0)