mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user