Skip to content

Commit 7296d9d

Browse files
authored
Merge pull request #85 from github/ref-bug
fix: move action reference outside table
2 parents 8dd9b24 + 9c97193 commit 7296d9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

markdown_writer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def write_to_markdown(
150150
file.write(f" {issue.label_metrics[label]} |")
151151
file.write("\n")
152152
file.write(
153-
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
153+
"\n_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
154154
)
155155

156156
print("Wrote issue metrics to issue_metrics.md")

test_markdown_writer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_write_to_markdown(self):
8585
"| Issue 1 | https://github.com/user/repo/issues/1 | 1 day, 0:00:00 | "
8686
"2 days, 0:00:00 | 3 days, 0:00:00 | 1 day, 0:00:00 |\n"
8787
"| Issue 2 | https://github.com/user/repo/issues/2 | 3 days, 0:00:00 | "
88-
"4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n"
88+
"4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n\n"
8989
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
9090
)
9191
self.assertEqual(content, expected_content)
@@ -158,7 +158,7 @@ def test_write_to_markdown_with_vertical_bar_in_title(self):
158158
"| Issue 1 | https://github.com/user/repo/issues/1 | 1 day, 0:00:00 | "
159159
"2 days, 0:00:00 | 3 days, 0:00:00 | 1 day, 0:00:00 |\n"
160160
"| feat| Issue 2 | https://github.com/user/repo/issues/2 | 3 days, 0:00:00 | "
161-
"4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n"
161+
"4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n\n"
162162
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
163163
)
164164
self.assertEqual(content, expected_content)
@@ -258,7 +258,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
258258
"| Title | URL |\n"
259259
"| --- | --- |\n"
260260
"| Issue 1 | https://github.com/user/repo/issues/1 |\n"
261-
"| Issue 2 | https://github.com/user/repo/issues/2 |\n"
261+
"| Issue 2 | https://github.com/user/repo/issues/2 |\n\n"
262262
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
263263
)
264264
self.assertEqual(content, expected_content)

0 commit comments

Comments
 (0)