aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2021-07-23 22:19:04 -0500
committerJohn Helmert III <ajak@gentoo.org>2021-07-23 22:19:04 -0500
commitcd40de0310372a545d7190f716de184e5882be41 (patch)
tree5fb0dd9861d6354794e5f88367024e4903e72e3f
parentglsatool: avoid trying to publish GLSAs with TODOs (diff)
downloadsecurity-ajak-cvetool.tar.gz
security-ajak-cvetool.tar.bz2
security-ajak-cvetool.zip
glsatool: implement closing bugs when releasingajak-cvetool
Signed-off-by: John Helmert III <ajak@gentoo.org>
-rw-r--r--bin/GLSATool.py7
1 files 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] \[.*\]')