Skip to content

Commit c941c83

Browse files
committed
chore: updated issue template
1 parent 033c024 commit c941c83

File tree

5 files changed

+39
-78
lines changed

5 files changed

+39
-78
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

-57
This file was deleted.

.github/ISSUE_TEMPLATE/bug_template.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
Thanks for taking the time to fill out this bug report!\n
10-
**Please note that issues that do not follow the template may be closed.**\n
9+
Thanks for taking the time to fill out this bug report!
10+
11+
⚠️ **Please note that issues that do not follow the template will be closed.**
1112
## Environment Info
1213
- type: dropdown
1314
id: version
@@ -48,7 +49,8 @@ body:
4849
- type: dropdown
4950
id: platform
5051
attributes:
51-
label: What platform\s this bug is occurring on?
52+
label: Platforms
53+
description: What platform\s this bug is occurring on?
5254
multiple: true
5355
options:
5456
- iOS
@@ -61,7 +63,7 @@ body:
6163
id: what-happened
6264
attributes:
6365
label: What happened?
64-
description: Please provide a clear and concise description of what the bug is?
66+
description: Please provide a clear and concise description of what the bug is? Include screenshots or gifs if needed.
6567
placeholder: Tell us what happened?
6668
validations:
6769
required: true
@@ -71,6 +73,8 @@ body:
7173
attributes:
7274
label: Reproduction steps
7375
description: You must provide a clear list of steps and code to reproduce the problem.
76+
placeholder: ex. - drag the bottom sheet...
77+
value: "- "
7478
validations:
7579
required: true
7680

@@ -79,7 +83,7 @@ body:
7983
attributes:
8084
label: Reproduction sample
8185
description: You must provide a reproduction sample code using **Expo Snack** [issue reproduction template](https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template)
82-
placeholder: ex. [email protected]
86+
placeholder: ex. https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template
8387
validations:
8488
required: true
8589

.github/workflows/auto-close.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Auto Close Issue Workflow
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
10+
env:
11+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
NUMBER: ${{ github.event.issue.number }}
13+
USER: ${{ github.event.issue.user.login }}
14+
REPO: "gorhom/react-native-bottom-sheet"
15+
16+
jobs:
17+
autoclose:
18+
runs-on: ubuntu-latest
19+
if: contains(github.event.issue.body, 'snack.expo.dev') != 'true'
20+
permissions:
21+
issues: write
22+
steps:
23+
- name: Close Issue
24+
run: gh issue close "$NUMBER" --comment "Hello @$USER :wave:, this issue is being automatically closed and locked because it does not follow the issue template." --repo "$REPO"
25+
- name: Label Issue
26+
run: gh issue edit "$NUMBER" --add-label "invalid" --repo "$REPO"
27+
- name: Lock Issue
28+
run: gh issue lock "$NUMBER" -r "spam" --repo "$REPO"

.github/workflows/main.yml

-16
This file was deleted.

.github/workflows/deployment.yml renamed to .github/workflows/website.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
paths:
8+
- 'website/**'
79

810
jobs:
911
build:

0 commit comments

Comments
 (0)