Skip to content

Commit

Permalink
chore: replace legacy .md issue templates with YAML-based forms (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Feb 5, 2025
1 parent 9c50b48 commit 76bcd1e
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 69 deletions.
69 changes: 69 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Bug report
description: Create a bug report
labels:
- bug
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug! Please note:
- For general usage questions, consider asking on [GitHub discussions](https://github.com/lingui/js-lingui/discussions).
- Bug reports without reproduction steps may be closed.
- type: textarea
attributes:
label: Description
description: A clear description of the bug.
validations:
required: true
- type: checkboxes
attributes:
label: Verifications
options:
- label: I've checked [the docs](https://lingui.dev) and this isn't covered there.
required: true
- label: I've searched existing issues on [GitHub](https://github.com/lingui/js-lingui/issues).
required: true
- type: textarea
attributes:
label: Reproduction Steps
description: Steps to reproduce with minimal code sample.
value: |
```tsx
import { Trans } from "@lingui/react/macro"
export default function App() {
return <Trans>This should be translated!</Trans>
}
```
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: What you expected to happen.
validations:
required: true
- type: dropdown
attributes:
label: Macro Support
description: What macro are you using?
options:
- SWC with @lingui/swc-plugin
- Babel with babel-macro-plugin
- Not using macro
validations:
required: true
- type: input
attributes:
label: Lingui Version
description: Output of `lingui --version`
validations:
required: true
- type: input
attributes:
label: Babel Version
description: Output of `npm list @babel/core`
- type: input
attributes:
label: Framework
description: E.g. Create React App, Next.js, Vite
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Feature request
description: Suggest an idea for this project
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
Thanks for your suggestion! Before proceeding:
- Check the [docs](https://lingui.dev) to see if this feature already exists
- Search [existing issues](https://github.com/lingui/js-lingui/issues) for similar requests
- type: textarea
attributes:
label: Problem Description
description: What problem are you trying to solve? E.g. I'm always frustrated when...
validations:
required: true
- type: textarea
attributes:
label: Proposed Solution
description: Describe your suggested solution.
validations:
required: true
- type: textarea
attributes:
label: Alternatives Considered
description: What alternative solutions have you considered?
validations:
required: true
- type: textarea
attributes:
label: Additional Context
description: Any other context, screenshots, or examples?
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: true
contact_links:
- name: View documentation
url: https://lingui.dev
about: Check the official docs for answers to common questions
- name: Chat on Discord
url: https://discord.gg/gFWwAYnMtA
about: Join the Lingui community on Discord
- name: Ask AI
url: https://gurubase.io/g/lingui-js
about: Ask Lingui JS Guru - AI powered Q&A assistant
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

19 changes: 0 additions & 19 deletions .github/stale.yml

This file was deleted.

0 comments on commit 76bcd1e

Please sign in to comment.