summaryrefslogtreecommitdiff
path: root/scripts/gh-list.py
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2019-01-14 17:45:44 +0100
committerGard Spreemann <gspreemann@gmail.com>2019-01-14 17:45:44 +0100
commit8074365997835ec3e93ee2aa1eadb3a794437066 (patch)
tree6f87d32435c8214c77c9e8103ca4e1d697ae02d5 /scripts/gh-list.py
parent5aef304fa112d4b11e401671900877d3c844e07d (diff)
parentd4b6e9839823e27af646a915436462254758e053 (diff)
Merge tag 'v2.1.2' into debian/sid
Diffstat (limited to 'scripts/gh-list.py')
-rw-r--r--scripts/gh-list.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/gh-list.py b/scripts/gh-list.py
new file mode 100644
index 0000000..a2e7955
--- /dev/null
+++ b/scripts/gh-list.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+from gh import gh, pr
+import os
+
+tok = os.getenv('GITHUB_TOKEN')
+
+draft = [r for r in gh('releases') if r['draft']][0]
+
+for a in draft['assets']:
+ print(a['browser_download_url'])