1
0
Fork 0

fix status name usage

This commit is contained in:
Mikhail Goncharov 2022-11-02 18:34:48 +01:00
parent a88324d943
commit 3bc8b9edd4

View file

@ -95,7 +95,8 @@ class ApplyPatch:
logging.info('This diff depends on: {}'.format(revision_list_to_str(dependencies)))
plan = []
for r in dependencies:
if r['status']['value'] is 'closed':
if r['statusName'] == 'Closed':
logging.info(f'skipping revision {r["id"]} - it is closed, assuming it has landed')
continue
d = self.get_diff(r['diffs'][0])
plan.append((r, d))