Repository: github/issue-metrics (python)

Issue:
feat: Include link to action in the markdown
Something like...

# Issue Metrics

| Overview Table | 

| Issues Table |


_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_

Pull request description:
Add reference to action in report
fixes #47 

Patch:
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 0904c81..63bad39 100644
--- a/markdown_writer.py
+++ b/markdown_writer.py
@@ -149,6 +149,9 @@ def write_to_markdown(
                     if f"Time spent in {label}" in columns:
                         file.write(f" {issue.label_metrics[label]} |")
             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")
 


Test patch:
diff --git a/test_markdown_writer.py b/test_markdown_writer.py
index 31426dd..b0b60fe 100644
--- a/test_markdown_writer.py
+++ b/test_markdown_writer.py
@@ -86,6 +86,7 @@ class TestWriteToMarkdown(unittest.TestCase):
             "2 days, 0:00:00 | 3 days, 0:00:00 | 1 day, 0:00:00 |\n"
             "| Issue 2 | https://github.com/user/repo/issues/2 | 3 days, 0:00:00 | "
             "4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n"
+            "_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
         )
         self.assertEqual(content, expected_content)
         os.remove("issue_metrics.md")
@@ -158,6 +159,7 @@ class TestWriteToMarkdown(unittest.TestCase):
             "2 days, 0:00:00 | 3 days, 0:00:00 | 1 day, 0:00:00 |\n"
             "| feat&#124; Issue 2 | https://github.com/user/repo/issues/2 | 3 days, 0:00:00 | "
             "4 days, 0:00:00 | 5 days, 0:00:00 | 2 days, 0:00:00 |\n"
+            "_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
         )
         self.assertEqual(content, expected_content)
         os.remove("issue_metrics.md")
@@ -257,6 +259,7 @@ class TestWriteToMarkdownWithEnv(unittest.TestCase):
             "| --- | --- |\n"
             "| Issue 1 | https://github.com/user/repo/issues/1 |\n"
             "| Issue 2 | https://github.com/user/repo/issues/2 |\n"
+            "_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
         )
         self.assertEqual(content, expected_content)
         os.remove("issue_metrics.md")