From c602a839cad5346bb40bfccbde81d5e4414acf91 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 26 Nov 2024 06:42:36 -0800 Subject: [PATCH] better update history script --- scripts/update-history.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) mode change 100644 => 100755 scripts/update-history.py diff --git a/scripts/update-history.py b/scripts/update-history.py old mode 100644 new mode 100755 index 8a3aa9107..4d637d9d0 --- a/scripts/update-history.py +++ b/scripts/update-history.py @@ -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)