|
|
@ -63,7 +63,6 @@ for label in labels:
|
|
|
|
|
|
|
|
|
|
|
|
for item in issues[label]:
|
|
|
|
for item in issues[label]:
|
|
|
|
# set the created date, find local field, otherwise Github
|
|
|
|
# set the created date, find local field, otherwise Github
|
|
|
|
print(item)
|
|
|
|
|
|
|
|
body = str(item['body'])
|
|
|
|
body = str(item['body'])
|
|
|
|
created = re.search('^Date: (.+?)\n', body, flags=re.MULTILINE)
|
|
|
|
created = re.search('^Date: (.+?)\n', body, flags=re.MULTILINE)
|
|
|
|
if created is not None:
|
|
|
|
if created is not None:
|
|
|
@ -133,16 +132,22 @@ for label in labels:
|
|
|
|
text_file.write(" - " + str(shepherd) + "\n")
|
|
|
|
text_file.write(" - " + str(shepherd) + "\n")
|
|
|
|
|
|
|
|
|
|
|
|
# PRs
|
|
|
|
# PRs
|
|
|
|
pr_list = re.search('PRs: (.+?)$', str(item['body']))
|
|
|
|
try:
|
|
|
|
if pr_list is not None:
|
|
|
|
pr_list = re.search('PRs: (.+?)$', str(item['body']))
|
|
|
|
pr_list_formatted = set()
|
|
|
|
if pr_list is not None:
|
|
|
|
pr_list = pr_list.group(1)
|
|
|
|
pr_list_formatted = set()
|
|
|
|
for p in pr_list.split(","):
|
|
|
|
pr_list = pr_list.group(1)
|
|
|
|
prs.add(p.strip())
|
|
|
|
for p in pr_list.split(","):
|
|
|
|
pr_list_formatted.add("`PR" + str(p.strip()) + "`_")
|
|
|
|
if not re.match(r"#\d", p.strip()):
|
|
|
|
text_file.write(" - " + ', '.join(pr_list_formatted))
|
|
|
|
raise RuntimeWarning
|
|
|
|
text_file.write("\n")
|
|
|
|
prs.add(p.strip())
|
|
|
|
else:
|
|
|
|
pr_list_formatted.add("`PR" + str(p.strip()) + "`_")
|
|
|
|
|
|
|
|
text_file.write(" - " + ', '.join(pr_list_formatted))
|
|
|
|
|
|
|
|
text_file.write("\n")
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
text_file.write(" - \n")
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
print("exception parsing PRs for MSC" + str(item['number']))
|
|
|
|
text_file.write(" - \n")
|
|
|
|
text_file.write(" - \n")
|
|
|
|
|
|
|
|
|
|
|
|
text_file.write("\n\n\n")
|
|
|
|
text_file.write("\n\n\n")
|
|
|
|