Skip to content

Commit

Permalink
Add 'optional' to the list of known label attributes
Browse files Browse the repository at this point in the history
Fixes: "Unknown label: optional"
  • Loading branch information
luk1337 committed Apr 17, 2024
1 parent 75cca42 commit 70b979a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changelog/gerrit.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, url, obj):
for lbl in obj['labels']:
self.labels[lbl] = {}
for k, v in obj['labels'][lbl].items():
if k in ('blocking', 'value', 'default_value', 'description', 'values', 'all'):
if k in ('blocking', 'value', 'default_value', 'description', 'optional', 'values', 'all'):
self.labels[lbl][k] = v
elif k in ('approved', 'rejected', 'recommended', 'disliked'):
self.labels[lbl][k] = GerritUser(url, v)
Expand Down

0 comments on commit 70b979a

Please sign in to comment.