prepare proposals.py for CI
This commit is contained in:
parent
c3062b7db6
commit
34090b24c4
2 changed files with 12 additions and 4 deletions
|
@ -11,7 +11,7 @@ authors = set()
|
|||
prs = set()
|
||||
|
||||
def getpage(url, page):
|
||||
resp = requests.get(url + str(page))
|
||||
resp = requests.get(url + str(page), auth=('benparsons', '99fbc9df2d75a18b5ac7f24e326e4de548b06172'))
|
||||
|
||||
for link in resp.links.values():
|
||||
if link['rel'] == 'last':
|
||||
|
@ -100,7 +100,7 @@ for label in labels:
|
|||
text_file.write(" - " + updated.strftime('%Y-%m-%d') + "\n")
|
||||
|
||||
# list of document links (urls comma-separated)
|
||||
maindoc = re.search('^Documentation: (.+?)\n', str(item['body']))
|
||||
maindoc = re.search('^Documentation: (.+?)$', str(item['body']), flags=re.MULTILINE)
|
||||
if maindoc is not None:
|
||||
maindoc = maindoc.group(1)
|
||||
doc_list_formatted = ["`" + str(item['number']) + "-" + str(i) + " <" + x.strip() + ">`_" for i, x in enumerate(maindoc.split(','),1)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue