Skip to content

Commit 9d68c32

Browse files
authored
Fixing labeler again (#1343)
* Trying... * Update. * adding labels file * check if existing labels improvement
1 parent bb27679 commit 9d68c32

File tree

2 files changed

+108
-3
lines changed

2 files changed

+108
-3
lines changed

.github/labels.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
- name: BLOCKER
2+
description: No further development until this is fixed.
3+
color: 000000
4+
5+
- name: BUG
6+
description: ""
7+
color: 994d00
8+
9+
- name: CI/CD
10+
description: ""
11+
color: b5f226
12+
13+
- name: Critical Priority
14+
description: ""
15+
color: ff0000
16+
17+
- name: Dependencies
18+
description: Dependencies
19+
color: a5db76
20+
21+
- name: Discussion
22+
description: ""
23+
color: bfdec3
24+
25+
- name: DO NOT MERGE
26+
description: ""
27+
color: 4f18e7
28+
29+
- name: Documentation
30+
description: ""
31+
color: bdd9db
32+
33+
- name: Duplicate
34+
description: ""
35+
color: cccccc
36+
37+
- name: Enhancement
38+
description: Improve any current implemented feature.
39+
color: 80b5ea
40+
41+
- name: Examples
42+
description: ""
43+
color: bfdec3
44+
45+
- name: Future
46+
description: To work on it in the future.
47+
color: c2ddf4
48+
49+
- name: Good First Issue
50+
description: Good and easy issue to start to work in PyANSYS development.
51+
color: f9cfc3
52+
53+
- name: Help wanted
54+
description: Tell the developers you need help or guidance.
55+
color: 12880c
56+
57+
- name: Maintenance
58+
description: Maintenance
59+
color: bbd2f1
60+
61+
- name: Major Priority
62+
description: ""
63+
color: ff7300
64+
65+
- name: MAPDL
66+
description: Requires changes in MAPDL
67+
color: 000000
68+
69+
- name: Minor Priority
70+
description: ""
71+
color: ffdd00
72+
73+
- name: New Feature
74+
description: Request/proposal for a new feature
75+
color: 235370
76+
77+
- name: Question
78+
description: ""
79+
color: c9317d
80+
81+
- name: Stale
82+
description: Stale issue, it will be closed.
83+
color: c106be
84+
85+
- name: Support
86+
description: ""
87+
color: 54afbb
88+
89+
- name: Won't fix
90+
description: ""
91+
color: ffffff

.github/workflows/label.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
name: "Pull Request Labeler"
22
on:
33
pull_request:
4-
types:
5-
- unlabeled
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- '../labels.yml'
68

79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
911
cancel-in-progress: true
1012

1113
jobs:
1214

15+
label-syncer:
16+
name: Syncer
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: micnncim/action-label-syncer@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
1324
labeler:
25+
name: Set labels
26+
needs: [label-syncer]
1427
permissions:
1528
contents: read
1629
pull-requests: write
@@ -66,7 +79,8 @@ jobs:
6679
- name: Suggest to add labels
6780
uses: peter-evans/create-or-update-comment@v2
6881
# Execute only when no labels have been applied to the pull request
69-
if: toJSON(github.event.pull_request.labels.*.name) == '[]'
82+
# if: toJSON(github.event.pull_request.labels.*.name) == '[]'
83+
if: github.event.pull_request.labels[0] == null # Empty labels
7084
with:
7185
issue-number: ${{ github.event.pull_request.number }}
7286
body: |

0 commit comments

Comments
 (0)