Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit c23ac90

Browse files
committed
replace auto labeler workflow
1 parent e7b063e commit c23ac90

File tree

4 files changed

+42
-59
lines changed

4 files changed

+42
-59
lines changed

.github/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: v1
2+
labels:
3+
- label: '📒 Documentation'
4+
matcher:
5+
title: '\b(docs|doc:|\[doc\]|README|typos|comment|documentation)\b'
6+
- label: '☢️ Bug'
7+
matcher:
8+
title: '\b(fix|race|bug|missing|correct)\b'
9+
- label: '🧹 Updates'
10+
matcher:
11+
title: '\b(improve|update|refactor|deprecated|remove|unused|test)\b'
12+
- label: '🤖 Dependencies'
13+
matcher:
14+
title: '\b(bumb|bdependencies)\b'
15+
- label: '✏️ Feature'
16+
matcher:
17+
title: '\b(feature|feat|create|implement|add)\b'
18+
- label: '🤔 Question'
19+
matcher:
20+
title: '\b(question|how)\b'

.github/release-drafter.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -32,61 +32,6 @@ version-resolver:
3232
- '🤖 Dependencies'
3333
- '🧹 Updates'
3434
default: patch
35-
autolabeler:
36-
- label: '📒 Documentation'
37-
title:
38-
- '/docs/i'
39-
- '/doc:/i'
40-
- '/\[doc\]/i'
41-
- '/README/i'
42-
- '/typos/i'
43-
- '/comment/i'
44-
- '/📚/i'
45-
- '/📒/i'
46-
- '/📝/i'
47-
- '/documentation/i'
48-
- label: '☢️ Bug'
49-
title:
50-
- '/fix/i'
51-
- '/race/i'
52-
- '/bug/i'
53-
- '/missing/i'
54-
- '/correct/i'
55-
- '/🐛/i'
56-
- '/☢/i'
57-
- '/🩹/i'
58-
- '/🚨/i'
59-
- label: '🧹 Updates'
60-
title:
61-
- '/improve/i'
62-
- '/update/i'
63-
- '/refactor/i'
64-
- '/deprecated/i'
65-
- '/remove/i'
66-
- '/unused/i'
67-
- '/test/i'
68-
- '/⚡/i'
69-
- '/👷/i'
70-
- '/🚧/i'
71-
- '/♻️/i'
72-
- '/🎨/i'
73-
- '/🧪/i'
74-
- '/🧹/i'
75-
- label: '🤖 Dependencies'
76-
title:
77-
- '/bumb/i'
78-
- '/dependencies/i'
79-
- '/📦/i'
80-
- '/🤖/i'
81-
- label: '✏️ Feature'
82-
title:
83-
- '/feature/i'
84-
- '/create/i'
85-
- '/implement/i'
86-
- '/add/i'
87-
- '/🚀/i'
88-
- '/✨/i'
89-
- '/🔥/i'
9035
template: |
9136
$CHANGES
9237

.github/workflows/auto-labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto labeler
2+
on:
3+
issues:
4+
types: [ opened, edited, milestoned ]
5+
pull_request_target:
6+
types: [ opened ]
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
statuses: write
12+
checks: write
13+
jobs:
14+
labeler:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check Labels
18+
id: labeler
19+
uses: fuxingloh/multi-labeler@v2
20+
with:
21+
github-token: ${{secrets.GITHUB_TOKEN}}

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ on:
55
# branches to consider in the event; optional, defaults to all
66
branches:
77
- master
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
8+
- main
129

1310
jobs:
1411
update_release_draft:

0 commit comments

Comments
 (0)