|
1 | 1 | name: Auto Label Issues |
2 | | - |
3 | 2 | on: |
4 | 3 | issues: |
5 | 4 | types: [opened] |
6 | 5 |
|
7 | 6 | jobs: |
8 | | - label_issue: |
| 7 | + triage: |
9 | 8 | runs-on: ubuntu-latest |
10 | | - |
11 | 9 | 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 |
68 | 11 | 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