Skip to content

Commit

Permalink
Merge branch 'release/5.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunwood-ai-labs committed Jun 11, 2024
2 parents 64196aa + 3a464b8 commit a842b67
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .SourceSageignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ build
.SourceSageAssets
docs
.Gaiah.md
.env
.env
STAGE_INFO
example
ISSUES_RESOLVE
tests
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)に対応
Expand Down Expand Up @@ -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"
```

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name='sourcesage',

# パッケージのバージョン
version='5.0.1',
version='5.0.2',

# パッケージに含めるモジュールを自動的に探す
packages=find_packages(),
Expand Down
11 changes: 7 additions & 4 deletions sourcesage/modules/ChangelogGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a842b67

Please sign in to comment.