From 0f8a17e6af8e2bc562564d794f7aaeffe12d1999 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 7 Jul 2024 13:23:30 -0300 Subject: [PATCH] Added Aider's contribution percentage to the release notes. --- HISTORY.md | 1 + scripts/blame.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 489cb9136..a586f3d70 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,6 +10,7 @@ - Default `--model-settings-file` is now `.aider.model.settings.yml`. - Default `--model-metadata-file` is now `.aider.model.metadata.json`. - Bugfix affecting launch with `--no-git`. +- Aider wrote 17% of the 511 lines edited in this release. ### Aider v0.42.0 diff --git a/scripts/blame.py b/scripts/blame.py index d782d4338..6f21997ea 100755 --- a/scripts/blame.py +++ b/scripts/blame.py @@ -76,7 +76,7 @@ def main(): print(f"- {author}: {count} lines ({percentage:.2f}%)") aider_percentage = (aider_total / total_lines) * 100 if total_lines > 0 else 0 - print(f"\nAider wrote {aider_percentage:.2f}% of {total_lines} lines edited in this release.") + print(f"\nAider wrote {aider_percentage:.0f}% of the {total_lines} lines edited in this release.") def get_counts_for_file(tag, authors, fname): text = run(['git', 'blame', f'{tag}..HEAD', '--', fname])