added files field

This commit is contained in:
Robert 2024-03-03 17:54:26 +07:00
parent 10bddc2e6b
commit 940dc6f704
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,8 @@ class WaitAction(BaseAction):
class CommentAction(BaseAction):
action_type: Literal["comment"]
text: str
text: Annotated[Optional[str], Field(default=None)]
files: Annotated[Optional[List[str]], Field(default=[])]
class Config(BaseConfig):
pass

View File

@ -35,7 +35,8 @@ class WaitProgressAction(BaseProgressAction):
class CommentProgressAction(BaseProgressAction):
action_type: Literal["comment"]
text: str
text: Annotated[Optional[str], Field(default=None)]
files: Annotated[Optional[List[str]], Field(default=[])]
class Config(BaseConfig):
pass