Skip to content

Commit

Permalink
Merge branch 'release/5.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunwood-ai-labs committed Jun 22, 2024
2 parents 8d0774d + 7463f82 commit a58ae2e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .SourceSageignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ STAGE_INFO
example
ISSUES_RESOLVE
tests
changelog_generator.log
changelog_generator.log
issue_creator.log
issue_response.txt
10 changes: 5 additions & 5 deletions docs/.sourcesage_releasenotes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ 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.1.1.md"
docuMind-changelog: ".SourceSageAssets\\Changelog\\CHANGELOG_release_5.1.1.md"
docuMind-output: ".SourceSageAssets/DOCUMIND/RELEASE_NOTES_v5.1.1.md"
docuMind-prompt-output: ".SourceSageAssets/DOCUMIND/_PROMPT_v5.1.1.md"
docuMind-release-report: ".SourceSageAssets\\RELEASE_REPORT\\Report_v5.2.0.md"
docuMind-changelog: ".SourceSageAssets\\Changelog\\CHANGELOG_main"
docuMind-output: ".SourceSageAssets/DOCUMIND/RELEASE_NOTES_v5.2.0.md"
docuMind-prompt-output: ".SourceSageAssets/DOCUMIND/_PROMPT_v5.2.0.md"
repo-name: "SourceSage"
repo-version: "v5.1.1"
repo-version: "v5.2.0"
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.2.0',
version='5.2.1',

# パッケージに含めるモジュールを自動的に探す
packages=find_packages(),
Expand Down
1 change: 1 addition & 0 deletions sourcesage/modules/ChangelogGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def integrate_changelogs(self):
if os.path.exists(integrated_changelog_path):
os.remove(integrated_changelog_path)
logger.info(f"既存の {integrated_changelog_path} ファイルを削除しました。")
os.makedirs(self.output_dir, exist_ok=True)

changelog_files = [file for file in os.listdir(self.output_dir) if file.startswith("CHANGELOG_")]
integrated_changelog = "# 統合された変更履歴\n\n"
Expand Down
24 changes: 19 additions & 5 deletions sourcesage/modules/IssueWize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

from art import *

from .GitCommander import run_command

try:
from .GitCommander import run_command
except:
from GitCommander import run_command

# .envファイルから環境変数を読み込む
load_dotenv()

Expand Down Expand Up @@ -214,9 +217,20 @@ def create_optimized_issue(self, issue_summary, project, milestone, repo_overvie

if __name__ == '__main__':
# 使用例
issue_summary = """
IssueWize.pyをSourceSageのCLIコマンドから実行できるようにコマンドを追加する。
SourceSageのCLIコマンドからパラメータを指定できるようにしたい(repo_overview_fileやモデル名などのパラメータ)
issue_summary = r"""
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\makim\miniconda3\Scripts\sourcesage.exe\__main__.py", line 7, in <module>
File "C:\Users\makim\miniconda3\Lib\site-packages\sourcesage\cli.py", line 128, in main
sourcesage.run()
File "C:\Users\makim\miniconda3\Lib\site-packages\sourcesage\core.py", line 51, in run
changelog_generator.integrate_changelogs()
File "C:\Users\makim\miniconda3\Lib\site-packages\sourcesage\modules\ChangelogGenerator.py", line 150, in integrate_changelogs
changelog_files = [file for file in os.listdir(self.output_dir) if file.startswith("CHANGELOG_")]
FileNotFoundError: [WinError 3] 指定されたパスが見つかりません。: './.SourceSageAssets/Changelog'
(base) C:\Prj\jupytext>
"""
project_name = "TaskSphere"
milestone = "Sprint01"
Expand Down

0 comments on commit a58ae2e

Please sign in to comment.