Skip to content

Commit 5d27b7d

Browse files
authored
Update auto-label.yml
1 parent c5a92fb commit 5d27b7d

1 file changed

Lines changed: 6 additions & 61 deletions

File tree

.github/workflows/auto-label.yml

Lines changed: 6 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,15 @@
11
name: Auto Label Issues
2-
32
on:
43
issues:
54
types: [opened]
65

76
jobs:
8-
label_issue:
7+
triage:
98
runs-on: ubuntu-latest
10-
119
steps:
12-
13-
# ------------------------------
14-
# Label: implementation
15-
# ------------------------------
16-
- name: Add label: implementation
17-
if: |
18-
contains(github.event.issue.title, 'implement') ||
19-
contains(github.event.issue.title, 'implementation') ||
20-
contains(github.event.issue.body, 'implement') ||
21-
contains(github.event.issue.body, 'solidity') ||
22-
contains(github.event.issue.body, 'contract')
23-
uses: actions-ecosystem/action-add-labels@v1
24-
with:
25-
labels: implementation
26-
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
28-
# ------------------------------
29-
# Label: spec
30-
# ------------------------------
31-
- name: Add label: spec
32-
if: |
33-
contains(github.event.issue.title, 'spec') ||
34-
contains(github.event.issue.body, 'spec') ||
35-
contains(github.event.issue.body, 'definition') ||
36-
contains(github.event.issue.body, 'invariant') ||
37-
contains(github.event.issue.body, 'module')
38-
uses: actions-ecosystem/action-add-labels@v1
39-
with:
40-
labels: spec
41-
github_token: ${{ secrets.GITHUB_TOKEN }}
42-
43-
# ------------------------------
44-
# Label: research
45-
# ------------------------------
46-
- name: Add label: research
47-
if: |
48-
contains(github.event.issue.body, 'analysis') ||
49-
contains(github.event.issue.body, 'research') ||
50-
contains(github.event.issue.body, 'study') ||
51-
contains(github.event.issue.body, 'paper')
52-
uses: actions-ecosystem/action-add-labels@v1
53-
with:
54-
labels: research
55-
github_token: ${{ secrets.GITHUB_TOKEN }}
56-
57-
# ------------------------------
58-
# Label: simulation
59-
# ------------------------------
60-
- name: Add label: simulation
61-
if: |
62-
contains(github.event.issue.body, 'simulation') ||
63-
contains(github.event.issue.body, 'model') ||
64-
contains(github.event.issue.body, 'modelling') ||
65-
contains(github.event.issue.body, 'twap') ||
66-
contains(github.event.issue.body, 'stress')
67-
uses: actions-ecosystem/action-add-labels@v1
10+
- uses: github/issue-labeler@v3
6811
with:
69-
labels: simulation
70-
github_token: ${{ secrets.GITHUB_TOKEN }}
12+
configuration-path: .github/issue-labeler.yml
13+
sync-labels: false
14+
enable-statistics: false
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)