From 3bc8b9edd44c14b37c79670b769a8516fa1e1523 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Wed, 2 Nov 2022 18:34:48 +0100 Subject: [PATCH] fix status name usage --- scripts/patch_diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/patch_diff.py b/scripts/patch_diff.py index cdaae27..7738f07 100755 --- a/scripts/patch_diff.py +++ b/scripts/patch_diff.py @@ -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))