Added Aider's contribution percentage to the release notes.

This commit is contained in:
Paul Gauthier 2024-07-07 13:23:30 -03:00 committed by Paul Gauthier (aider)
parent 365652b899
commit 0f8a17e6af
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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])