From 5b1f454207bebb2b5683849eca5389c52f136728 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sun, 3 Dec 2017 08:41:23 -0500 Subject: close-old-reviews: add url and subject in summary for easier identification Change-Id: I34fdb009cbedd0d1ed1f7877732e4f4ad4671b7d Signed-off-by: Amar Tumballi --- build-gluster-org/scripts/close-old-reviews.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build-gluster-org/scripts/close-old-reviews.py') diff --git a/build-gluster-org/scripts/close-old-reviews.py b/build-gluster-org/scripts/close-old-reviews.py index 5aa4635..eb99cd5 100644 --- a/build-gluster-org/scripts/close-old-reviews.py +++ b/build-gluster-org/scripts/close-old-reviews.py @@ -16,8 +16,7 @@ def get_change_ids(days=90, count=25): ''' r = requests.get('https://review.gluster.org/changes/' '?q=status:open+age:{}days+project:glusterfs' - '&n={}'.format(days, count) - ) + '&n={}'.format(days, count)) output = r.text cleaned_output = '\n'.join(output.split('\n')[1:]) parsed_output = json.loads(cleaned_output) @@ -39,7 +38,10 @@ def close_reviews(change_ids): } username = os.environ.get('HTTP_USERNAME') password = os.environ.get('HTTP_PASSWORD') - print("Attempting to close review: ", change['_number']) + print("Attempting to close review: ", "https://review.gluster.org/", + change['_number'], + " -- Title: ", + change['subject']) response = requests.post(url, auth=(username, password), json=data) try: response.raise_for_status() -- cgit