diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..73e8cb5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,76 @@ +name: "\U0001F41E Bug report" +description: Report an issue with a plugin in this repository +labels: [pending triage] +type: Bug +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: checkboxes + id: plugins + attributes: + label: Related plugins + description: Select the plugin which is related + options: + - label: | + [plugin-babel](https://github.com/rolldown/plugins/tree/main/packages/babel) + - label: | + [plugin-emotion](https://github.com/rolldown/plugins/tree/main/packages/emotion) + - 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: I am doing ... What I expect is ... What actually happening is ... + validations: + required: true + - type: input + id: reproduction + attributes: + label: Reproduction + description: Please provide a link via [vite.new](https://vite.new/) or [Rolldown's stackblitz template](https://stackblitz.com/fork/github/rolldown/rolldown-starter-stackblitz) or a link to a repo that can reproduce the problem you ran into. `npm create vite@latest` and `npm create vite-extra@latest` (for SSR or library repros) can be used as a starter template. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). 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 3 days, it will be auto-closed. + placeholder: Reproduction URL + validations: + required: true + - type: textarea + id: reproduction-steps + attributes: + label: Steps to reproduce + description: Please provide any reproduction steps that may need to be described. E.g. if it happens only when running the dev or build script make sure it's clear which one to use. + placeholder: Run `npm install` followed by `npm run dev` + - type: textarea + id: system-info + attributes: + label: System Info + description: Output of `npx envinfo --system --npmPackages '{rolldown,@rolldown/*,vite,@vitejs/*}' --binaries --browsers` + render: shell + placeholder: System, Binaries, Browsers + validations: + required: true + - type: dropdown + id: package-manager + attributes: + label: Used Package Manager + description: Select the used package manager + options: + - npm + - yarn + - pnpm + - bun + validations: + required: true + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://github.com/rolldown/.github/blob/main/CODE_OF_CONDUCT.md) + required: true + - label: Check that there isn't [already an issue](https://github.com/rolldown/plugins/issues) that reports the same bug to avoid creating a duplicate. + required: true + - label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/rolldown/plugins/discussions). + required: true + - label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug. + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..18a38a0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +contact_links: + - name: Questions & Discussions + url: https://github.com/rolldown/plugins/discussions + about: Use GitHub discussions for message-board style questions and discussions. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..955f46b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,54 @@ +name: "\U0001F680 New feature proposal" +description: Propose a new feature to be added to a plugin in this repository +labels: ['pending triage'] +type: Feature +body: + - type: markdown + attributes: + value: | + Thanks for your interest in the project and taking the time to fill out this feature report! + - type: checkboxes + id: plugins + attributes: + label: Related plugins + description: Select the plugin which is related + options: + - label: | + [plugin-babel](https://github.com/rolldown/plugins/tree/main/packages/babel) + - label: | + [plugin-emotion](https://github.com/rolldown/plugins/tree/main/packages/emotion) + - type: textarea + id: feature-description + attributes: + label: Description + description: 'Clear and concise description of the problem. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this issue, tell us in the description. Thanks!' + placeholder: As a developer using [plugin name] plugin, I want [goal / wish] so that [benefit]. + validations: + required: true + - type: textarea + id: suggested-solution + attributes: + label: Suggested solution + description: 'In module [xy] we could provide following implementation...' + validations: + required: true + - type: textarea + id: alternative + attributes: + label: Alternative + description: Clear and concise description of any alternative solutions or features you've considered. + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Any other context or screenshots about the feature request here. + - type: checkboxes + id: checkboxes + attributes: + label: Validations + description: Before submitting the issue, please make sure you do the following + options: + - label: Follow our [Code of Conduct](https://github.com/rolldown/.github/blob/main/CODE_OF_CONDUCT.md) + required: true + - label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate. + required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..13e60f6 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ + diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..81731c4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,4 @@ +'plugin: babel': + - '/- \[x\] \[plugin-babel\]/i' +'plugin: emotion': + - '/- \[x\] \[plugin-emotion\]/i' diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml new file mode 100644 index 0000000..03370d8 --- /dev/null +++ b/.github/workflows/issue-labeler.yml @@ -0,0 +1,20 @@ +name: Issue Labeler + +on: + issues: + types: [opened, edited] + +permissions: + issues: write + contents: read + +jobs: + label: + runs-on: ubuntu-slim + steps: + - uses: github/issue-labeler@v3.4 + with: + configuration-path: .github/labeler.yml + enable-versioned-regex: 0 + sync-labels: 1 + repo-token: ${{ github.token }}