From abed214d2b66d24532f398df20801751cc72f5c3 Mon Sep 17 00:00:00 2001 From: Maki Date: Tue, 11 Jun 2024 19:22:27 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=94=A7=20[refactor]=20=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=B3=E3=82=B8=E3=83=AD=E3=82=B0=E7=B5=B1=E5=90=88?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=81=AE=E5=A0=85=E7=89=A2=E6=80=A7=E5=90=91?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Unicodeデコードエラーを処理する例外処理を追加 - チェンジログファイルの読み込みをより堅牢にするためのロギングを改善 --- sourcesage/modules/ChangelogGenerator.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sourcesage/modules/ChangelogGenerator.py b/sourcesage/modules/ChangelogGenerator.py index afe3326..329f97f 100644 --- a/sourcesage/modules/ChangelogGenerator.py +++ b/sourcesage/modules/ChangelogGenerator.py @@ -113,15 +113,18 @@ def generate_changelog_for_all_branches(self): f.write("\n") logger.info(f"機能ブランチの変更履歴が {output_file} に正常に生成されました。") - def integrate_changelogs(self): changelog_files = [file for file in os.listdir(self.output_dir) if file.startswith("CHANGELOG_")] integrated_changelog = "# 統合された変更履歴\n\n" for file in changelog_files: - with open(os.path.join(self.output_dir, file), 'r', encoding='utf-8') as f: - content = f.read() - integrated_changelog += f"{content}\n\n" + file_path = os.path.join(self.output_dir, file) + try: + with open(file_path, 'r', encoding='utf-8') as f: + content = f.read() + integrated_changelog += f"{content}\n\n" + except UnicodeDecodeError as e: + logger.warning(f"ファイル '{file_path}' のデコードエラーをスキップします: {str(e)}") output_file = os.path.join(self.output_dir, "CHANGELOG_integrated.md") with open(output_file, 'w', encoding='utf-8') as f: From 3523c0c9c67c546dd47dd65fc3471f226f803a6f Mon Sep 17 00:00:00 2001 From: Maki Date: Tue, 11 Jun 2024 19:22:30 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=9A=80=20[chore]=20.SourceSageignore?= =?UTF-8?q?=E3=81=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - STAGE_INFO, example, ISSUES_RESOLVE, testsをignoreリストに追加 - ドキュメントと環境設定ファイルの管理を改善 --- .SourceSageignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.SourceSageignore b/.SourceSageignore index 0154063..d3bb763 100644 --- a/.SourceSageignore +++ b/.SourceSageignore @@ -26,4 +26,8 @@ build .SourceSageAssets docs .Gaiah.md -.env \ No newline at end of file +.env +STAGE_INFO +example +ISSUES_RESOLVE +tests \ No newline at end of file From e1923758ba5ba1956c53ac87077ae8ac630d2345 Mon Sep 17 00:00:00 2001 From: Maki Date: Tue, 11 Jun 2024 19:26:34 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20(#28)[docs]=20README?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE=E3=83=AA=E3=83=AA?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=83=AA=E3=83=B3=E3=82=AF=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SourceSageの最新リリース情報を5.0.2に更新 - リリースリンクとリリースノートの文書を整理 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 928b5e8..481ac41 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ SourceSageは、プロジェクトのソースコードとファイル構成を ## 更新内容 -- [【2024/06/10】 SourceSage 5.0.0](https://github.com/Sunwood-ai-labs/SourceSage/releases/tag/v5.0.0) +- [【2024/06/10】 SourceSage 5.0.2](https://github.com/Sunwood-ai-labs/SourceSage/releases/tag/v5.0.2) - AIRA と Harmon.AI の設定を追加し、コード生成機能を追加(`DocuMind`、`CommitCraft`) - [【2024/05/12】 SourceSage 4.2.0](https://github.com/Sunwood-ai-labs/SourceSage/releases/tag/v4.2.0) - ステージング情報のテンプレートに絵文字と[GAIAH](https://github.com/Sunwood-ai-labs/Gaiah)に対応 @@ -145,7 +145,7 @@ sourcesage --mode Sage GenerateReport CommitCraft --model-name "gemini/gemini-1. #### リリースノートの生成 ```bash -sourcesage --mode DocuMind --docuMind-model "gemini/gemini-1.5-pro-latest" --docuMind-db ".SourceSageAssets\DOCUMIND\Repository_summary.md" --docuMind-release-report ".SourceSageAssets\RELEASE_REPORT\Report_v5.0.0.md" --docuMind-changelog ".SourceSageAssets\Changelog\CHANGELOG_release_5.0.0.md" --docuMind-output ".SourceSageAssets/DOCUMIND/RELEASE_NOTES_v5.0.0.md" --docuMind-prompt-output ".SourceSageAssets/DOCUMIND/_PROMPT_v5.0.0.md" --repo-name "SourceSage" --repo-version "v0.5.0" +sourcesage --mode DocuMind --docuMind-model "gemini/gemini-1.5-pro-latest" --docuMind-db ".SourceSageAssets\DOCUMIND\Repository_summary.md" --docuMind-release-report ".SourceSageAssets\RELEASE_REPORT\Report_v5.0.2.md" --docuMind-changelog ".SourceSageAssets\Changelog\CHANGELOG_release_5.0.2.md" --docuMind-output ".SourceSageAssets/DOCUMIND/RELEASE_NOTES_v5.0.2.md" --docuMind-prompt-output ".SourceSageAssets/DOCUMIND/_PROMPT_v5.0.2.md" --repo-name "SourceSage" --repo-version "v0.5.0" ``` From 351693df347a44fe91c05de11277523cb0a2ddbe Mon Sep 17 00:00:00 2001 From: Maki Date: Tue, 11 Jun 2024 19:26:37 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=96=20(#28)[chore]=20=E3=83=91?= =?UTF-8?q?=E3=83=83=E3=82=B1=E3=83=BC=E3=82=B8=E3=83=90=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=925.0.2=E3=81=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - setup.pyにおけるバージョン情報を5.0.2に更新 - パッケージの整合性を保つためのバージョン更新 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9f12ea1..244f35a 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ name='sourcesage', # パッケージのバージョン - version='5.0.1', + version='5.0.2', # パッケージに含めるモジュールを自動的に探す packages=find_packages(),