fix(templates): quote Yes/No dropdown options in feature_request.yml (#575)

YAML 1.1 (used by GitHub's template parser) interprets bare Yes and No
as boolean values (true/false) rather than strings. This caused GitHub
to silently reject the feature_request.yml issue form template during
validation, preventing it from appearing in the issue template chooser.

The fix quotes both values ("Yes" and "No") in the 'Breaking change?'
dropdown so they are unambiguously parsed as strings, satisfying
GitHub's schema requirement that dropdown options must be string-typed.

Root cause confirmed by loading the template with PyYAML (which also
implements YAML 1.1): the unquoted options were deserialized as Python
bool (True/False) instead of str. After quoting, they deserialize as
strings as expected.

Ref: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/common-validation-errors-when-creating-issue-forms

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Alex Gorevski 2026-02-17 10:31:12 -08:00 committed by GitHub
parent 31fa4f1197
commit b66144b950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,8 +91,8 @@ body:
attributes: attributes:
label: Breaking change? label: Breaking change?
options: options:
- No - "No"
- Yes - "Yes"
validations: validations:
required: true required: true