mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24: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/website/",
|
||||
":!scripts/",
|
||||
":!HISTORY.md",
|
||||
]
|
||||
result = subprocess.run(cmd, capture_output=True, text=True)
|
||||
|
@ -42,12 +43,13 @@ def main():
|
|||
tmp_path = tmp.name
|
||||
|
||||
# Construct and run the aider command
|
||||
message = (
|
||||
"Update the history with changes shown in the diffs. "
|
||||
"Follow the existing pattern. "
|
||||
"Don't edit or duplicate changes that have existing history entries, "
|
||||
"just add any new items not already listed."
|
||||
)
|
||||
message = """
|
||||
Update the history with changes shown in the diffs.
|
||||
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.
|
||||
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]
|
||||
subprocess.run(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue