Skip to content

Commit 446e018

Browse files
authored
chore: fix generate labels workflow (#4)
1 parent 99abc63 commit 446e018

File tree

2 files changed

+45
-30
lines changed

2 files changed

+45
-30
lines changed

.github/labeler.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
"type: feature ✨":
2-
title: '^feat(\(.+\))?:.*'
3-
"type: fix 🐞":
4-
title: '^fix(\(.+\))?:.*'
5-
"type: docs 📋":
6-
title: '^docs(\(.+\))?:.*'
7-
"type: style 🎨":
8-
title: '^style(\(.+\))?:.*'
9-
"type: refactor 🔧":
10-
title: '^refactor(\(.+\))?:.*'
11-
"type: test 🧪":
12-
title: '^test(\(.+\))?:.*'
13-
"type: chore 🧹":
14-
title: '^chore(\(.+\))?:.*'
15-
"type: perf ⚡":
16-
title: '^perf(\(.+\))?:.*'
17-
"type: build 🔨":
18-
title: '^build(\(.+\))?:.*'
19-
"type: ci ⚙️":
20-
title: '^ci(\(.+\))?:.*'
21-
"type: revert ↩️":
22-
title: '^revert(\(.+\))?:.*'
23-
"type: localize 🌐":
24-
title: '^localize(\(.+\))?:.*'
25-
"type: bump 📦":
26-
title: '^bump(\(.+\))?:.*'
1+
version: 1
2+
appendOnly: true
3+
labels:
4+
- label: "type: feature ✨"
5+
title: '^feat(\(.+\))?:.*'
6+
- label: "type: fix 🐞"
7+
title: '^fix(\(.+\))?:.*'
8+
- label: "type: docs 📋"
9+
title: '^docs(\(.+\))?:.*'
10+
- label: "type: style 🎨"
11+
title: '^style(\(.+\))?:.*'
12+
- label: "type: refactor 🔧"
13+
title: '^refactor(\(.+\))?:.*'
14+
- label: "type: test 🧪"
15+
title: '^test(\(.+\))?:.*'
16+
- label: "type: chore 🧹"
17+
title: '^chore(\(.+\))?:.*'
18+
- label: "type: perf ⚡"
19+
title: '^perf(\(.+\))?:.*'
20+
- label: "type: build 🔨"
21+
title: '^build(\(.+\))?:.*'
22+
- label: "type: ci ⚙️"
23+
title: '^ci(\(.+\))?:.*'
24+
- label: "type: revert ↩️"
25+
title: '^revert(\(.+\))?:.*'
26+
- label: "type: localize 🌐"
27+
title: '^localize(\(.+\))?:.*'
28+
- label: "type: bump 📦"
29+
title: '^bump(\(.+\))?:.*'
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
name: "Generate Labels"
22

33
on:
4-
pull_request:
5-
types: [opened, edited, synchronize]
4+
- pull_request
5+
- issues
66

77
jobs:
88
label:
99
name: "Label PR based on title"
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
1115
steps:
12-
- uses: srvaroa/labeler@v1
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Label PR based on title
20+
uses: srvaroa/labeler@v1
21+
with:
22+
config_path: .github/labeler.yml
23+
use_local_config: false
24+
fail_on_error: false
1325
env:
14-
GITHUB_TOKEN: ${{ github.token }}
26+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)