Skip to content

Commit c89a4ba

Browse files
authored
chore: set issue types and remove "enhancement: pending" label (#573)
1 parent 7640154 commit c89a4ba

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "\U0001F41E Bug report"
22
description: Report an issue
33
labels: [pending triage]
4+
type: Bug
45
body:
56
- type: markdown
67
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "\U0001F680 New feature proposal"
22
description: Propose a new feature
3-
labels: ["enhancement: pending triage"]
3+
labels: ["pending triage"]
4+
type: Feature
45
body:
56
- type: markdown
67
attributes:

.github/workflows/issue-labeled.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,14 @@ jobs:
2424
labels: "pending triage, need reproduction"
2525

2626
- name: remove pending
27-
if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'pending triage')
27+
if: (github.event.label.name == 'enhancement' || contains(github.event.label.description, '(priority)')) && contains(github.event.issue.labels.*.name, 'pending triage')
2828
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
2929
with:
3030
actions: "remove-labels"
3131
token: ${{ secrets.GITHUB_TOKEN }}
3232
issue-number: ${{ github.event.issue.number }}
3333
labels: "pending triage"
3434

35-
- name: remove enhancement pending
36-
if: "(github.event.label.name == 'enhancement' || contains(github.event.label.description, '(priority)')) && contains(github.event.issue.labels.*.name, 'enhancement: pending triage')"
37-
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3
38-
with:
39-
actions: "remove-labels"
40-
token: ${{ secrets.GITHUB_TOKEN }}
41-
issue-number: ${{ github.event.issue.number }}
42-
labels: "enhancement: pending triage"
43-
4435
- name: need reproduction
4536
if: github.event.label.name == 'need reproduction'
4637
uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3

0 commit comments

Comments
 (0)