From 10fc8106486b27a4d8c4920f831be0c5a1409f78 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Mon, 31 Jul 2023 11:44:30 -0700 Subject: [PATCH] fix: put action reference outside issue row loop Signed-off-by: Zack Koppert --- .pylintrc | 3 ++- markdown_writer.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 96c0fce..df959dd 100644 --- a/.pylintrc +++ b/.pylintrc @@ -5,4 +5,5 @@ disable= too-few-public-methods, duplicate-code, too-many-locals, - too-many-branches, \ No newline at end of file + too-many-branches, + line-too-long, \ No newline at end of file diff --git a/markdown_writer.py b/markdown_writer.py index 70d5758..63bad39 100644 --- a/markdown_writer.py +++ b/markdown_writer.py @@ -148,7 +148,10 @@ def write_to_markdown( for label in labels: if f"Time spent in {label}" in columns: file.write(f" {issue.label_metrics[label]} |") - file.write("\n_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n") + file.write("\n") + file.write( + "_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n" + ) print("Wrote issue metrics to issue_metrics.md")