Skip to content

Commit

Permalink
Merge branch 'main' of github.com:daltonmenezes/electron-router-dom i…
Browse files Browse the repository at this point in the history
…nto fix/hmr
  • Loading branch information
daltonmenezes committed Jan 25, 2025
2 parents 986f6f8 + 1085afa commit 0df1387
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 🐞 Bug report
description: Report an issue with Electron Router DOM
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
placeholder: Bug description
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Please provide a link to a github repo that can reproduce the problem you ran into. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided after 7 days, it will be auto-closed.
placeholder: Reproduction
validations:
required: true
- type: textarea
id: system-info
attributes:
label: System Info
description: Output of `npx envinfo --system --npmPackages '{electron-router-dom*/,react/,react-dom/,react-router-dom/,electron}' --binaries` in your project directory.
render: shell
placeholder: System, Binaries
validations:
required: true
- type: dropdown
id: package-manager
attributes:
label: Used Package Manager
description: Select the used package manager
options:
- npm
- yarn
- pnpm
validations:
required: true
17 changes: 17 additions & 0 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Issue Close Require

on:
schedule:
- cron: '0 0 * * *'

jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: needs reproduction
uses: actions-cool/issues-helper@v3
with:
actions: close-issues
token: ${{ secrets.GITHUB_TOKEN }}
labels: needs reproduction
inactive-day: 7
19 changes: 19 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue Labeled

on:
issues:
types: [labeled]

jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: needs reproduction
if: github.event.label.name == 'needs reproduction'
uses: actions-cool/issues-helper@v3
with:
actions: create-comment
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository. Issues marked with `needs reproduction` will be closed if they have no activity within 7 days.
24 changes: 24 additions & 0 deletions .github/workflows/lock-closed-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lock Closed Issues

on:
schedule:
- cron: '0 0 * * *'

permissions:
issues: write

jobs:
action:
if: github.repository == 'daltonmenezes/electron-router-dom'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-inactive-days: '14'
# issue-comment: |
# This issue has been locked since it has been closed for more than 14 days.
#
# If you have found a concrete bug related to it, please open a new [bug report](https://github.com/daltonmenezes/electron-router-dom/issues/new/choose) with a reproduction against the latest Electron Router DOM version. If you have any other comments you should create a new [discussion](https://github.com/daltonmenezes/electron-router-dom/discussions).
issue-lock-reason: ''
process-only: issues

0 comments on commit 0df1387

Please sign in to comment.