Skip to content

labels is a list#110

Merged
jmeridth merged 1 commit intoossf:mainfrom
trumant:one-more-issue-template-yaml-fix
Mar 28, 2025
Merged

labels is a list#110
jmeridth merged 1 commit intoossf:mainfrom
trumant:one-more-issue-template-yaml-fix

Conversation

@trumant
Copy link
Contributor

@trumant trumant commented Mar 28, 2025

No description provided.

Signed-off-by: Travis Truman <trumant@gmail.com>
@jmeridth
Copy link
Member

@trumant was the label not getting set? According to docs labels are an Array or comma-delimited string.

@jmeridth
Copy link
Member

@trumant to be clear, you are correct, it is a list but if we're just applying one label I think a string will work. Having labels as a list, allows for future ones. Do we think it's best to use a list for that future possibility? 🤔

@trumant
Copy link
Contributor Author

trumant commented Mar 28, 2025

I think it's best to specify a YAML list with a single list item, because the schema declares the field to be of type list. The comma-delimited string is a holdover from the Markdown with YAML front matter days I believe.

VS Code YAML validation was nagging about it because it somehow found the underlying schema.

@jmeridth jmeridth merged commit c214308 into ossf:main Mar 28, 2025
2 checks passed
@trumant trumant deleted the one-more-issue-template-yaml-fix branch March 28, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants