diff --git a/.github/ISSUE_TEMPLATE/0-core-bug.yml b/.github/ISSUE_TEMPLATE/0-core-bug.yml new file mode 100644 index 000000000..43bd52eb3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/0-core-bug.yml @@ -0,0 +1,118 @@ +name: '🐛 Framework Bug' +description: Report a bug in Mithril.js core +assignees: dead-claudia +labels: +- 'Type: Bug' +- 'Area: Core' +body: +- type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true +- type: input + attributes: + label: Mithril.js Version + description: | + Provide the exact version of Mithril.js you're experiencing these issues with. This + matters, even if it's really old like version 0.1.0. Do note that bugs in older + versions are commonly fixed in newer versions, so you should try to test it + against the latest version if you can. + validations: + required: true +- type: textarea + attributes: + label: Browser and OS + description: | + Provide the name and version of both the browser and operating system you're + experiencing these issues with. If it's multiple, feel free to list multiple. + This matters, even if it's super ancient. + validations: + required: true +- type: textarea + attributes: + label: Project + description: | + (Optional) Provide a link to your project, if it happens to be open source or if + you created a repo somewhere that we can look into further. If it's spread across + multiple repos or projects, feel free to list them all. +- type: textarea + attributes: + label: Code + description: | + What did you try? What code is causing the unexpected behavior? Make sure to + try to reduce your code as best as you can while still reproducing the bug, so + we can more accurately determine the cause. Ideally, it should just be a bunch + of Mithril.js calls with virtually no logic at all, but it's sufficient to just + remove unrelated network calls, attributes, and the like. + + In addition, make sure the bug still persists with the latest version of + Mithril. If it's an older version, the bug may have already been fixed. + + If you'd prefer, replace this code block with a link to a code playground like + any of these: + + - Flems (stores everything in URL hash) + - JSFiddle + - CodePen + - JSBin + - Plunker + - Glitch (supports backend) + - CodeSandbox (supports backend) + + Or if it's a remote development project on your own server, feel free to provide + that if it's serving unminified code we can look at. + + If it's a closed-source repo, it's okay to censor names and pull out irrelevant + logic - we'd rather not sign NDAs just to see the code you're having trouble + with. We do still need code of some kind that triggers the bug you're running + into. + render: javascript + validations: + required: true +- type: textarea + attributes: + label: Steps to Reproduce + description: | + What steps need to be taken to reproduce this behavior? Please include things + like specific data that need typed in, specific buttons that need clicked, and + so on. + placeholder: | + 1. + 2. + 3. + 4. + validations: + required: true +- type: textarea + attributes: + label: Expected Behavior + description: | + What did you expect to happen? + + - An alert to pop up? + - A specific thing to be logged? + + Please be very specific here. + validations: + required: true +- type: textarea + attributes: + label: Observed Behavior + description: | + What actually happened? + + - The alert never showed? + - The wrong thing was logged? + + Please be very specific here. + validations: + required: true +- type: textarea + attributes: + label: Context + description: | + (Optional) How is this issue affecting you? What are you trying to do? Providing + us context helps us reach a solution that best fits your particular needs. diff --git a/.github/ISSUE_TEMPLATE/1-docs-bug.yml b/.github/ISSUE_TEMPLATE/1-docs-bug.yml new file mode 100644 index 000000000..ecd5374b6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-docs-bug.yml @@ -0,0 +1,27 @@ +name: '📃 Documentation Issue' +description: Report an issue with Mithril.js's documentation +assignees: dead-claudia +labels: +- 'Type: Bug' +- 'Area: Documentation' +body: +- type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true +- type: input + attributes: + label: Offending URL + description: Provide a link to the page with the issue + placeholder: https://mithril.js.org/ + validations: + required: true +- type: textarea + attributes: + label: Issue description + description: What is the precise issue with it. Please be specific. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md deleted file mode 100644 index 35db54630..000000000 --- a/.github/ISSUE_TEMPLATE/bug.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -name: "\U0001F41B Bug" -about: Report a bug in Mithril.js -title: '' -labels: 'Type: Bug' -assignees: dead-claudia - ---- - - - -**Mithril.js version:** - - -**Browser and OS:** - - -**Project:** - -## Code - -```javascript -// Code -``` - -## Steps to Reproduce - -1. -2. -3. -4. - -## Expected Behavior - - -## Current Behavior - - -## Context - diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..425bfdba0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,18 @@ +blank_issues_enabled: true +contact_links: + - name: ℹ Questions, Ideas, and Discussions + url: https://github.com/MithrilJS/mithril.js/discussions + about: | + Got a question on how to use Mithril.js? Have a fancy idea of how we could do better? Check + out our discussions forum! + - name: ℹ Show and Tell + url: https://github.com/MithrilJS/mithril.js/discussions/new?category=show-and-tell + about: | + Got something to show off? Made something so cool, you just have to tell the world? Let us + know here in our discussions forum! + - name: 🚀 Feature Request or Enhancement + url: https://github.com/MithrilJS/mithril.js/discussions/new?category=ideas + about: Got a feature request? Let us know here! We do those in our discussion forum. + - name: 💻 Zulip Chat + url: https://mithril.zulipchat.com/ + about: Not sure about something? Just want to hang out? Come over to our Zulip chat! diff --git a/.github/ISSUE_TEMPLATE/feature-or-enhancement.md b/.github/ISSUE_TEMPLATE/feature-or-enhancement.md deleted file mode 100644 index 81df37660..000000000 --- a/.github/ISSUE_TEMPLATE/feature-or-enhancement.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -name: "\U0001F680 Feature or Enhancement" -about: Suggest an idea or feature for Mithril.js -title: '' -labels: 'Type: Enhancement' -assignees: dead-claudia - ---- - - - -**Mithril.js version:** - - -**Platform and OS:** - - -**Project:** - - -**Is this something you're interested in implementing yourself?** - -### Description - - -### Why - - -### Possible Implementation - - -### Open Questions - diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 45b04f73f..000000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -name: "\U0001F64B‍♀️ Question" -about: Ask a question about Mithril.js -title: '' -labels: 'Type: Question' -assignees: '' - ---- - - - -**Mithril.js version:** - - -**Browser and OS:** - - -**Project:** - -## Code - -```javascript -// Code -``` - -## Expected Behavior - - -## Current Behavior - - -## Steps to Reproduce - -1. -2. -3. -4. - -## Context - diff --git a/.github/workflows/issue-create.yml b/.github/workflows/issue-create.yml index 24214b0fa..8735af936 100644 --- a/.github/workflows/issue-create.yml +++ b/.github/workflows/issue-create.yml @@ -4,7 +4,16 @@ on: types: [opened] permissions: issues: write + repository-projects: write jobs: + add_triage: + runs-on: ubuntu-latest + steps: + - run: gh issue edit "$ISSUE_URL" --add-project 'Triage/bugs' + env: + ISSUE_URL: ${{ github.event.issue.url }} + GITHUB_TOKEN: ${{ github.token }} + notify: uses: ./.github/workflows/_post-comment.yml with: