Update release_note.py

pull/2736/head
TianYuan 2 years ago committed by GitHub
parent 3f6afc4834
commit e1a43ddb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -168,15 +168,15 @@ if __name__ == '__main__':
labels = []
thanks_to = []
for issue in issues:
label = None
for label in issue['labels']:
labels.append(label['name'])
thanks_to.append('@%s' % (issue['user']['login']))
final_data.append(' * **[%s]** - %s #%d by **@%s**\n' %
(label['name'], issue['title'], issue['number'],
issue['user']['login']))
if label:
thanks_to.append('@%s' % (issue['user']['login']))
final_data.append(' * **[%s]** - %s #%d by **@%s**\n' %
(label['name'], issue['title'], issue['number'],
issue['user']['login']))
dic = collections.defaultdict(set)
for l_release in list(set(labels)):

Loading…
Cancel
Save