summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-03-28 01:46:29 +0000
committerBen Hutchings <ben@decadent.org.uk>2019-03-28 01:49:50 +0000
commiteb51c7725271bea941d40933c031ae86b716e971 (patch)
treef713fea6b64b502e11d1c57018d801b6a81ea610 /scripts
parent291f75a24ec30e91aa6759edf49da587e4eff6d1 (diff)
Add script to find and retire inactive issues
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/retire-inactive29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/retire-inactive b/scripts/retire-inactive
new file mode 100755
index 00000000..b447db1e
--- /dev/null
+++ b/scripts/retire-inactive
@@ -0,0 +1,29 @@
+#!/usr/bin/python3
+
+import subprocess
+
+import issue
+
+
+def main():
+ retireable = []
+
+ for i in issue.get_issues('active'):
+ for release in i.get_releases():
+ status = issue.parse_status(i.status(release))
+ if status['state'] not in ['released', 'N/A', 'ignored']:
+ break
+ else:
+ retireable.append(i.name)
+
+ if retireable:
+ print('Retiring', *retireable)
+ subprocess.call(['git', 'mv']
+ + ['active/' + name for name in retireable]
+ + ['retired/'])
+ else:
+ print('Nothing to retire')
+
+
+if __name__ == '__main__':
+ main()

© 2014-2024 Faster IT GmbH | imprint | privacy policy