From cd40de0310372a545d7190f716de184e5882be41 Mon Sep 17 00:00:00 2001 From: John Helmert III Date: Fri, 23 Jul 2021 22:19:04 -0500 Subject: glsatool: implement closing bugs when releasing Signed-off-by: John Helmert III --- bin/GLSATool.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/GLSATool.py b/bin/GLSATool.py index 9aa21b9..7f3a9b2 100644 --- a/bin/GLSATool.py +++ b/bin/GLSATool.py @@ -74,6 +74,7 @@ class GLSATool: release_path = '/glsas/{}/release'.format(num) xml_path = '/glsas/{}/download.xml'.format(num) txt_path = '/glsas/{}/download.txt'.format(num) + finalize_path = '/glsas/{}/finalize_release'.format(num) data = { 'value': 'Release >', @@ -110,9 +111,11 @@ class GLSATool: f.write(txt) print("Wrote {}".format(txt_filename)) - # TODO: - # Mail it # Close bugs + self.request(finalize_path, 'POST', data={'close_bugs': 1}) + + # TODO: Mail it + def new_whiteboard(self, old_whiteboard): regex = re.compile('[A-C~][0-4] \[.*\]') -- cgit v1.2.3