Missing labels is a subset of allow_needs

Missing labels should not require to be a proper subset of
the labels we set in the pipeline. The sets should also be able
to be equal.

Change-Id: If29a7f6a2730fa279c3405b24fc1d413bec456f0
This commit is contained in:
Albin Vass 2019-10-15 09:43:38 +02:00 committed by James E. Blair
parent b2e5500cc2
commit 0735b7b838
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ class GerritConnection(BaseConnection):
# Good question. It's probably ref-updated, which, ah,
# means it's merged.
return True
if change.missing_labels < set(allow_needs):
if change.missing_labels <= set(allow_needs):
return True
return False