esc-reporting/esc-analyze.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
New commits: commit 1e684252316414a5c4d4d915b1105586c56ab143 Author: jan Iversen <j...@libreoffice.org> Date: Wed May 17 13:58:13 2017 +0200 esc-report, gerrit ssh needs patchset and not just id diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py index 7680be1..50406a3 100755 --- a/esc-reporting/esc-analyze.py +++ b/esc-reporting/esc-analyze.py @@ -656,11 +656,17 @@ def analyze_reports(): if x['email'] != ownerEmail and x['email'] != 'c...@libreoffice.org': cntReview += 1 if xDate < cfg['1monthDate'] and not doBlock: - txt = row['messages'][len(row['messages'])-1] + x = len(row['messages'])-1 + if x >= 0: + patchset = row['messages'][x]['_revision_number'] + txt = row['messages'][x]['message'] + else: + patchset = 1 + txt = '' if 'A polite ping' in txt: - automateList['gerrit']['to_abandon_abandon'][entry['id']] = 0 + automateList['gerrit']['to_abandon_abandon'][entry['id']] = patchset else: - automateList['gerrit']['to_abandon_comment'][entry['id']] = 0 + automateList['gerrit']['to_abandon_comment'][entry['id']] = patchset if cntReview == 0 and not statList['people'][ownerEmail]['isCommitter']: tmpListToReview.append(entry['id']) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits