diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index f94014c36..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '[v4] | [v2] Issue title' -labels: bug -assignees: '' - ---- - -# Bug - - - -## Environment info - - - -| Library | Version | -| ------------------------------- | ------- | -| @gorhom/bottom-sheet | x.x.x | -| react-native | x.x.x | -| react-native-reanimated | x.x.x | -| react-native-gesture-handler | x.x.x | - -## Steps To Reproduce - - - -1. -2. -3. - -Describe what you expected to happen: - -1. -2. - -## Reproducible sample code - - diff --git a/.github/ISSUE_TEMPLATE/bug_template.yaml b/.github/ISSUE_TEMPLATE/bug_template.yaml index ff7634c97..f35cfe4e1 100644 --- a/.github/ISSUE_TEMPLATE/bug_template.yaml +++ b/.github/ISSUE_TEMPLATE/bug_template.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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@example.com + placeholder: ex. https://snack.expo.dev/@gorhom/bottom-sheet---issue-reproduction-template validations: required: true diff --git a/.github/workflows/auto-close.yml b/.github/workflows/auto-close.yml new file mode 100644 index 000000000..533e68778 --- /dev/null +++ b/.github/workflows/auto-close.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index b2a765db1..000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -on: - issues: - types: [opened, edited] - -jobs: - auto_close_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Automatically close issues that don't follow the issue template - uses: lucasbento/auto-close-issues@v1.0.2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property - closed-issues-label: "not-following-issue-template" \ No newline at end of file diff --git a/.github/workflows/deployment.yml b/.github/workflows/website.yml similarity index 97% rename from .github/workflows/deployment.yml rename to .github/workflows/website.yml index 6b53ab02b..81b63f7e2 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/website.yml @@ -4,6 +4,8 @@ on: push: branches: - master + paths: + - 'website/**' jobs: build: