mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 04:44:59 +00:00
better update history script
This commit is contained in:
parent
01c7793e90
commit
c602a839ca
1 changed files with 8 additions and 6 deletions
14
scripts/update-history.py
Normal file → Executable file
14
scripts/update-history.py
Normal file → Executable file
|
@ -26,6 +26,7 @@ def run_git_log():
|
||||||
"--",
|
"--",
|
||||||
"aider/",
|
"aider/",
|
||||||
":!aider/website/",
|
":!aider/website/",
|
||||||
|
":!scripts/",
|
||||||
":!HISTORY.md",
|
":!HISTORY.md",
|
||||||
]
|
]
|
||||||
result = subprocess.run(cmd, capture_output=True, text=True)
|
result = subprocess.run(cmd, capture_output=True, text=True)
|
||||||
|
@ -42,12 +43,13 @@ def main():
|
||||||
tmp_path = tmp.name
|
tmp_path = tmp.name
|
||||||
|
|
||||||
# Construct and run the aider command
|
# Construct and run the aider command
|
||||||
message = (
|
message = """
|
||||||
"Update the history with changes shown in the diffs. "
|
Update the history with changes shown in the diffs.
|
||||||
"Follow the existing pattern. "
|
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, "
|
Don't edit or duplicate changes that have existing history entries, just add any new items not already listed.
|
||||||
"just add any new items not already listed."
|
Be sure to attribute changes to the proper .x version.
|
||||||
)
|
Changes in the .x-dev version should be listed under a "### main branch" heading
|
||||||
|
""" # noqa
|
||||||
|
|
||||||
cmd = ["aider", "HISTORY.md", "--read", tmp_path, "--msg", message]
|
cmd = ["aider", "HISTORY.md", "--read", tmp_path, "--msg", message]
|
||||||
subprocess.run(cmd)
|
subprocess.run(cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue