Deployment
This commit is contained in:
@@ -7,6 +7,15 @@ from pydantic import BaseModel
|
||||
from contracts.ProjectContext import ProjectContext
|
||||
|
||||
|
||||
class IssueComment(BaseModel):
|
||||
id: str
|
||||
author: str
|
||||
body: str
|
||||
created_at: int
|
||||
is_agent: bool = False
|
||||
marker: dict[str, str] = field(default_factory=dict)
|
||||
|
||||
|
||||
@dataclass
|
||||
class IssueContext:
|
||||
issue_id: str
|
||||
@@ -49,11 +58,3 @@ class IssueContext:
|
||||
parts.append(f"- @{c.author} ({c.created_at}): {c.body}")
|
||||
|
||||
return "\n".join(parts)
|
||||
|
||||
class IssueComment(BaseModel):
|
||||
id: str
|
||||
author: str
|
||||
body: str
|
||||
created_at: int
|
||||
is_agent: bool = False
|
||||
marker: dict[str, str] = field(default_factory=dict)
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import uuid
|
||||
from dataclasses import dataclass, field
|
||||
from enum import Enum
|
||||
from typing import Optional
|
||||
from typing import Optional, Literal
|
||||
|
||||
from contracts.base import BaseContract
|
||||
|
||||
@@ -58,7 +58,7 @@ class Task(BaseContract):
|
||||
lines = [
|
||||
f"# Task: {self.description}",
|
||||
f"# Before start you must ensure that another tasks have been done: {', '.join(self.depends_on)}" if self.depends_on else "",
|
||||
f"# Acceptance criteria: \n{"\n - ".join(self.acceptance_criteria)}",
|
||||
f"# Acceptance criteria: \n{"\n - ".join(self.acceptance_criteria)}"
|
||||
]
|
||||
|
||||
return "\n".join(lines)
|
||||
|
||||
Reference in New Issue
Block a user