One function
write_to_markdown in github-community-projects/issue-metrics
The author described this change as “fix: move action reference outside table”. It counts as a record because the check below fails on the code as it stood at 8dd9b248a and passes on 9c9719352, with nothing else changed between the two runs.
Fix saved2023-08-01
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
Write the issues with metrics to a markdown file. Args: issues_with_metrics (IssueWithMetrics): A list of GitHub issues with metrics average_time_to_first_response (datetime.timedelta): The average time to first response for the issues. average_time_to_close (datetime.timedelta): The average time to close for the issues. average_time_to_answer (datetime.timedelta): The average time to answer the discussions. average_time_in_labels (dict): A dictionary containing the average time spent in each label. file (file object, optional): The file object to write to. If not provided, a file named "issue_metrics.md" will be created. num_issues_opened (int): The Number of items that remain opened. num_issues_closed (int): The number of issues that were closed. labels (List[str]): A list of the labels that are used in the issues. Returns: None.
The change
| 84 | 84 | file.write(f" {issue.label_metrics[label]} |") | |
| 85 | 85 | file.write("\n") | |
| 86 | 86 | file.write( | |
| 87 | - | "_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n" | |
| 87 | + | "\n_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n" | |
| 88 | 88 | ) | |
| 89 | 89 | ||
| 90 | 90 | print("Wrote issue metrics to issue_metrics.md") |
The check that tells the two apart
fail→pass·test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown
Check file test_markdown_writer.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it8dd9b248ac863297408f31c6ace7b9790ec39b41
Broken version dated2023-07-31
Modulemarkdown_writer
Units changedwrite_to_markdown
Fingerprint1fb4cb7f89e7bdb3
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in github-community-projects/issue-metrics
- 2023-06-29write_to_markdown