Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/new-rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: ✨ New Rule Request
description: Share your new rule request
labels: ["new-rule"]

body:
- type: markdown
attributes:
value: |
Thank you for your new rule request! Please provide as much detail as possible. Use any of the existing rules as a reference. You only have to provide the rule contents (markdown), not the rule metadata. We will handle the rest. In other words, convert your rule into all the formats (Cursor, Windsurf, Copilot).

- type: textarea
id: description
attributes:
label: Description
description: Provide the new rule contents (markdown).
placeholder: Enter the new rule contents (markdown) here...
validations:
required: true

- type: dropdown
id: language
attributes:
label: What language(s) are the rule for?
multiple: true
options:
- 'python'
- 'javascript'
- 'typescript'
- 'java'
- 'c'
- 'c++'
- 'go'
- 'rust'
- 'ruby'
- 'php'
- 'swift'
- 'kotlin'
- 'scala'
- 'r'
- 'matlab'
- 'julia'
- 'dart'
- 'lua'
- 'perl'
- 'shell'
- 'powershell'
- 'fsharp'
- 'erlang'
- 'ocaml'
- 'yaml'
- 'docker'
- 'xml'
- 'vue'
- 'elm'
- 'cuda'
- 'opencl'
- 'other (please specify)'
validations:
required: true
- type: textarea
id: other
attributes:
label: Other
description: Please specify the language(s) you are requesting. Only specify this if the language is not listed above.
placeholder: Add the language(s) here...
validations:
required: false
Comment on lines +64 to +67
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the 'Other' textarea conditionally visible and required only when 'other (please specify)' is selected in the language dropdown. Add an if guard to the 'other' field and set validations.required to true so submissions can't omit the value when 'Other' is chosen.

Suggested change
description: Please specify the language(s) you are requesting. Only specify this if the language is not listed above.
placeholder: Add the language(s) here...
validations:
required: false
description: Please specify the language(s) you are requesting ONLY IF you selected "other (please specify)" above. Otherwise, leave this blank.
placeholder: Add the language(s) here...
validations:
required: true

Copilot uses AI. Check for mistakes.