Skip to content

Commit 6949781

Browse files
authored
Merge pull request #270 from PavanRaga/patch-3
2 parents e12c77a + bd86d87 commit 6949781

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

markdown.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def get_contributor_table(
191191
commit_urls += f"{url}, "
192192
new_contributor = collaborator.new_contributor
193193

194-
row = f"| {'' if link_to_profile == 'false' else '@'}{username} | {contribution_count} |"
194+
row = (
195+
f"| {'' if not link_to_profile else '@'}{username} | {contribution_count} |"
196+
)
195197
if "New Contributor" in columns:
196198
row += f" {new_contributor} |"
197199
if "Sponsor URL" in columns:

test_markdown.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_write_to_markdown(self, mock_file):
4949
None,
5050
"org/repo",
5151
"false",
52-
"true",
52+
True,
5353
ghe,
5454
)
5555

@@ -105,7 +105,7 @@ def test_write_to_markdown_with_sponsors(self, mock_file):
105105
None,
106106
"org/repo",
107107
"true",
108-
"true",
108+
True,
109109
ghe,
110110
)
111111

@@ -161,7 +161,7 @@ def test_write_to_markdown_without_link_to_profile(self, mock_file):
161161
None,
162162
"org/repo",
163163
"false",
164-
"false",
164+
False,
165165
ghe,
166166
)
167167

0 commit comments

Comments
 (0)