esc-reporting/esc-automate.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
New commits: commit 101e38645617824b11de61b55571fa284f947021 Author: jan Iversen <j...@libreoffice.org> Date: Wed May 17 13:58:41 2017 +0200 esc-report, prepare automate to use gerrit ssh diff --git a/esc-reporting/esc-automate.py b/esc-reporting/esc-automate.py index 950ddd5..947a94f 100755 --- a/esc-reporting/esc-automate.py +++ b/esc-reporting/esc-automate.py @@ -78,7 +78,7 @@ def doBugzilla(id, command, isComment=False): -def doGerrit(id, command): +def doGerritHTTP(id, command): global cfg url = 'https://gerrit.libreoffice.org/a/changes/' + id @@ -86,6 +86,8 @@ def doGerrit(id, command): rawData = json.loads(r.text[5:]) r.close() +# ssh gerrit.libreoffice.org "gerrit set-reviewers -a 'Thorsten Behrens <thorsten.behr...@cib.de>' 37593" + def doMail(mail, subject, content, attach=None): @@ -99,20 +101,20 @@ def doMail(mail, subject, content, attach=None): def handle_gerrit_abandon(id, text): - doGerrit(id + '/abandon', cfg['automate']['gerrit']['abandon']) + doGerritHTTP(id + '/abandon', cfg['automate']['gerrit']['abandon']) return def handle_gerrit_review(id, email): - doGerrit(id + '/reviewers', '{"reviewer": "' + email + '"}') - doGerrit(id + '/revisions/current/review', 'added reviewer') + doGerritHTTP(id + '/reviewers', '{"reviewer": "' + email + '"}') + doGerritHTTP(id + '/revisions/current/review', 'added reviewer') def handle_gerrit_comment(id, text): polite = 'A polite ping, ' + cfg['automate']['gerrit']['comment'] - doGerrit(id + '/revisions/current/review', polite) + doGerritHTTP(id + '/revisions/current/review', polite) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits