summaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-04-09 13:30:56 +0200
committerMartin Liska <mliska@suse.cz>2021-04-09 13:30:56 +0200
commita0bb9b3b9d71ae1d7dacd33c79c7e2f70956ba9b (patch)
tree7beb4915870cae3ef7fcddf51b7ce17b745101c6 /maintainer-scripts
parent2b2f687fb0211dec3673600bf6e722155c24b09f (diff)
branch_changer.py: mention CLOSING candidates
maintainer-scripts/ChangeLog: * branch_changer.py: Mention closing candidates and emit console links to bugzilla.
Diffstat (limited to 'maintainer-scripts')
-rwxr-xr-xmaintainer-scripts/branch_changer.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/maintainer-scripts/branch_changer.py b/maintainer-scripts/branch_changer.py
index 0f0cbaf43e0..118b6faf4f1 100755
--- a/maintainer-scripts/branch_changer.py
+++ b/maintainer-scripts/branch_changer.py
@@ -81,12 +81,11 @@ class Bug:
self.fail_versions = [x for x in re.split(' |,', v) if x != '']
def name(self):
- return 'PR%d (%s)' % (self.data['id'], self.data['summary'])
+ bugid = self.data['id']
+ url = f'https://gcc.gnu.org/bugzilla/show_bug.cgi?id={bugid}'
+ return f'\u001b]8;;{url}\u001b\\PR{bugid}\u001b]8;;\u001b\\ ({self.data["summary"]})'
def remove_release(self, release):
- # Do not remove last value of [x Regression]
- if len(self.versions) == 1:
- return
self.versions = list(filter(lambda x: x != release, self.versions))
def add_release(self, releases):
@@ -105,13 +104,17 @@ class Bug:
return True
def update_summary(self, api_key, doit):
+ if not self.versions:
+ print(self.name())
+ print(' not changing summary, candidate for CLOSING')
+ return False
+
summary = self.data['summary']
new_summary = self.serialize_summary()
if new_summary != summary:
print(self.name())
print(' changing summary to "%s"' % (new_summary))
self.modify_bug(api_key, {'summary': new_summary}, doit)
-
return True
return False