Skip to content

Commit 856786a

Browse files
committed
✨ Improves issue template and workflow
- Removes issue-type comments from issue templates - Updates the bug issue workflow to use the "Steps to reproduce" section to trigger the Discord notification, ensuring that the workflow is only triggered for valid bug reports
1 parent 62f03b5 commit 856786a

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ body:
77
- type: markdown
88
attributes:
99
value: |
10-
<!-- issue-type=bug -->
11-
1210
Thanks for raising an issue. Share the essentials so we can reproduce and fix it quickly.
1311
1412
- type: textarea

.github/ISSUE_TEMPLATE/story.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ body:
77
- type: markdown
88
attributes:
99
value: |
10-
<!-- issue-type=story -->
11-
1210
Keep it lightweight: describe the problem, the outcome, and how we'll confirm it delivers value.
1311
1412
**Figma:** [Gardens V2 UI](https://www.figma.com/design/v9ECAmLYs2pam1wguh3HUS/Gardens-V2-UI?node-id=1-25&p=f&t=QTrkzN8ykb9AdIi6-0)

.github/ISSUE_TEMPLATE/task.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
<!-- issue-type: task -->
10-
119
Capture the goal, the work needed, and how you'll know it's done.
1210
1311
- type: textarea

.github/workflows/issue-bug-to-discord.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ jobs:
99
notify_discord:
1010
runs-on: ubuntu-latest
1111

12-
# Run only for Bug issues AND when "Skip notify Discord" is NOT checked
13-
if: ${{ contains(github.event.issue.body, 'issue-type=bug') && !contains(github.event.issue.body, '- [x] Skip notify Discord') }}
12+
# Run only for Bug-form issues AND when "Skip notify Discord" is NOT checked
13+
if: ${{
14+
contains(github.event.issue.body, '### Steps to reproduce') &&
15+
!contains(github.event.issue.body, '- [x] Skip notify Discord') &&
16+
!contains(github.event.issue.body, '- [X] Skip notify Discord')
17+
}}
1418

1519
steps:
1620
- name: Send Discord notification

0 commit comments

Comments
 (0)