mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
Added Aider's contribution percentage to the release notes.
This commit is contained in:
parent
365652b899
commit
0f8a17e6af
2 changed files with 2 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue