Skip to content

Commit

Permalink
chore: updated issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Oct 13, 2024
1 parent 033c024 commit 76801d5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 78 deletions.
57 changes: 0 additions & 57 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

14 changes: 9 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!\n
**Please note that issues that do not follow the template may be closed.**\n
Thanks for taking the time to fill out this bug report!
⚠️ **Please note that issues that do not follow the template will be closed.**
## Environment Info
- type: dropdown
id: version
Expand Down Expand Up @@ -48,7 +49,8 @@ body:
- type: dropdown
id: platform
attributes:
label: What platform\s this bug is occurring on?
label: Platforms
description: What platform\s this bug is occurring on?
multiple: true
options:
- iOS
Expand All @@ -61,7 +63,7 @@ body:
id: what-happened
attributes:
label: What happened?
description: Please provide a clear and concise description of what the bug is?
description: Please provide a clear and concise description of what the bug is? Include screenshots or gifs if needed.
placeholder: Tell us what happened?
validations:
required: true
Expand All @@ -71,6 +73,8 @@ body:
attributes:
label: Reproduction steps
description: You must provide a clear list of steps and code to reproduce the problem.
placeholder: ex. - drag the bottom sheet...
value: "- "
validations:
required: true

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

Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/auto-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto Close Issue Workflow

on:
issues:
types:
- opened
- reopened
- edited

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.issue.number }}
USER: ${{ github.event.issue.user.login }}
REPO: "gorhom/react-native-bottom-sheet"

jobs:
autoclose:
runs-on: ubuntu-latest
if: contains(github.event.issue.body, 'snack.expo.dev') != 'true'
permissions:
issues: write
steps:
- name: Close Issue
run: gh issue close "$NUMBER" --comment $'@${USER} hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template.' --repo "$REPO"
- name: Label Issue
run: gh issue edit "$NUMBER" --add-label "invalid" --repo "$REPO"
- name: Lock Issue
run: gh issue lock "$NUMBER" -r "spam" --repo "$REPO"
16 changes: 0 additions & 16 deletions .github/workflows/main.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
paths:
- 'website/**'

jobs:
build:
Expand Down

0 comments on commit 76801d5

Please sign in to comment.