Only get issues that are proposals when finding proposals

Otherwise we end up with not-proposals showing up in the list.
pull/977/head
Travis Ralston 6 years ago
parent b0744aa1e9
commit 4f24d2101f

@ -28,7 +28,7 @@ def getpage(url, page):
def getbylabel(label): def getbylabel(label):
pagecount = 1 pagecount = 1
json = list() json = list()
urlbase = 'https://api.github.com/repos/matrix-org/matrix-doc/issues?state=all&labels=' + label + '&page=' urlbase = 'https://api.github.com/repos/matrix-org/matrix-doc/issues?state=all&labels=proposal,' + label + '&page='
print(urlbase) print(urlbase)
json.extend(getpage(urlbase, 1)) json.extend(getpage(urlbase, 1))
for page in range(2, int(pagecount) + 1): for page in range(2, int(pagecount) + 1):

Loading…
Cancel
Save