🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
feat: Assume it's new requirements if the code directory does not exist
莘权 马ce1895a40bfd
diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.pyindex b9bad2233..bb0cf8fb9 100644--- a/metagpt/actions/write_prd.py+++ b/metagpt/actions/write_prd.py@@ -190,5 +190,9 @@ class WritePRD(Action):CONFIG.git_repo.rename_root(CONFIG.project_name)async def _is_bugfix(self, context) -> bool:+ src_workspace_path = CONFIG.git_repo.workdir / CONFIG.git_repo.workdir.name+ code_files = CONFIG.git_repo.get_files(relative_path=src_workspace_path)+ if not code_files:+ return Falsenode = await WP_ISSUE_TYPE_NODE.fill(context, self.llm)return node.get("issue_type") == "BUG"