Community board automations: ignore case for Track (#65224)

This is only really needed for Track, a custom field that has a
manually-maintained mapping to the area labels on PRs, but it's a cheap
enough operation for the rest of them. Follow-up to
https://github.com/zed-industries/zed/pull/64650

Release Notes:

- N/A
This commit is contained in:
Lena 2026-10-06 09:03:01 +00:00 • committed by GitHub
parent c31280f1b8
commit 24aabd3fa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,8 @@ def set_github_project_field(project, item_id, field_name, option_name):
(
option["id"]
for option in field.get("options", [])
if option["name"] == option_name
# Case-insensitive mainly for Track, which has a mapping maintained manually
if option["name"].casefold() == option_name.casefold()
),
None,
)