@@ -131,7 +131,7 @@ def line_format_contribution(node: dict) -> str:
131131 author = node ['author' ]['name' ]
132132 link = node ['permalink' ]
133133 merged = format_github_time_to_date (node ['mergedAt' ])
134- return f'[{ title } ]({ link } ) -P { author } (merged { merged } )'
134+ return f'[{ title } ]({ link } ) - { author } (merged { merged } )'
135135
136136
137137def line_format_contributions (
@@ -145,13 +145,14 @@ def line_format_contributions(
145145
146146 :returns: A list of markdown lines
147147 """
148+ contrib_authors = set (node ['node' ]['author' ]['login' ] for node in contributions )
148149 lines = [
149- '# Contributions' , '' ,
150- 'By Authors : {}' .format (', ' .join (authors )), '' ,
151- 'To Repositories in Organizations : {}' . format ( ', ' . join ( orgs )) , '' ,
152- f'Merged Since : { since .isoformat ()} ' , '' ,
153- f'This report generated : { datetime . date . today (). isoformat () } ' , ' ' ,
154- f'Contribution count (remember to update if you remove things): { len ( contributions ) } ' , '' ,
150+ '* By Authors: {}' . format ( ' , '. join ( contrib_authors )) ,
151+ '* To Repositories in Organizations : {}' .format (', ' .join (orgs )), '' ,
152+ f'* Merged Since : { since . isoformat () } ' , '' ,
153+ f'* This report generated : { datetime . date . today () .isoformat ()} ' , '' ,
154+ f'* Contribution count (remember to update if you remove things) : { len ( contributions ) } ' ,
155+ '' ,
155156 ]
156157
157158 byrepo : Dict [str , List [str ]] = {}
0 commit comments