mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
feat: Assume it's new requirements if the code directory does not exist
This commit is contained in:
parent
c24b3fff1b
commit
ce1895a40b
1 changed files with 4 additions and 0 deletions
|
|
@ -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 False
|
||||
node = await WP_ISSUE_TYPE_NODE.fill(context, self.llm)
|
||||
return node.get("issue_type") == "BUG"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue