mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
feat: add aider contribution percentage to history updates
This commit is contained in:
parent
722c2c2668
commit
e507c5b502
1 changed files with 8 additions and 1 deletions
|
@ -42,13 +42,20 @@ def main():
|
||||||
tmp.write(diff_content)
|
tmp.write(diff_content)
|
||||||
tmp_path = tmp.name
|
tmp_path = tmp.name
|
||||||
|
|
||||||
|
# Run blame to get aider percentage
|
||||||
|
blame_result = subprocess.run(["python3", "scripts/blame.py"], capture_output=True, text=True)
|
||||||
|
aider_line = blame_result.stdout.strip().split('\n')[-1] # Get last line with percentage
|
||||||
|
|
||||||
# Construct and run the aider command
|
# Construct and run the aider command
|
||||||
message = """
|
message = f"""
|
||||||
Update the history with changes shown in the diffs.
|
Update the history with changes shown in the diffs.
|
||||||
Describe actual user-facing changes, not every single commit that was made implementing them.
|
Describe actual user-facing changes, not every single commit that was made implementing them.
|
||||||
Don't edit or duplicate changes that have existing history entries, just add any new items not already listed.
|
Don't edit or duplicate changes that have existing history entries, just add any new items not already listed.
|
||||||
Be sure to attribute changes to the proper .x version.
|
Be sure to attribute changes to the proper .x version.
|
||||||
Changes in the .x-dev version should be listed under a "### main branch" heading
|
Changes in the .x-dev version should be listed under a "### main branch" heading
|
||||||
|
|
||||||
|
Also, add this as the last bullet under the "### main branch" section:
|
||||||
|
{aider_line}
|
||||||
""" # noqa
|
""" # noqa
|
||||||
|
|
||||||
cmd = ["aider", "HISTORY.md", "--read", tmp_path, "--msg", message, "--no-auto-commit"]
|
cmd = ["aider", "HISTORY.md", "--read", tmp_path, "--msg", message, "--no-auto-commit"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue