commit:     cd40de0310372a545d7190f716de184e5882be41
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 24 03:19:04 2021 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 24 03:19:04 2021 +0000
URL:        https://gitweb.gentoo.org/proj/security.git/commit/?id=cd40de03

glsatool: implement closing bugs when releasing

Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 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 &gt;',
@@ -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] \[.*\]')

Reply via email to