diff --git a/src/libs/github/models/issue.py b/src/libs/github/models/issue.py index 9c82bd6..bff0583 100644 --- a/src/libs/github/models/issue.py +++ b/src/libs/github/models/issue.py @@ -4,7 +4,7 @@ @Author : yanyongyu @Date : 2021-03-11 16:57:04 @LastEditors : yanyongyu -@LastEditTime : 2021-08-20 23:32:41 +@LastEditTime : 2021-08-20 23:52:12 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -53,7 +53,7 @@ class Issue(BaseModel): number: int state: str title: str - body: str + body: Optional[str] body_text: Optional[str] body_html: Optional[str] user: User diff --git a/src/libs/github/models/timeline.py b/src/libs/github/models/timeline.py index 1933c60..1eab78d 100644 --- a/src/libs/github/models/timeline.py +++ b/src/libs/github/models/timeline.py @@ -4,7 +4,7 @@ @Author : yanyongyu @Date : 2021-05-14 00:57:33 @LastEditors : yanyongyu -@LastEditTime : 2021-08-20 23:31:52 +@LastEditTime : 2021-08-20 23:57:43 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -133,7 +133,7 @@ class TimelineEventCommentDeleted(TimelineEvent): # Issue assigned to Person class TimelineEventAssigned(TimelineEvent): - type: Literal["assigned"] + event: Literal["assigned"] id: int node_id: str url: str @@ -142,7 +142,7 @@ class TimelineEventAssigned(TimelineEvent): commit_url: Optional[str] created_at: datetime assignee: Actor - assigner: Actor + assigner: Optional[Actor] = None # Issue Mentioned Person @@ -317,7 +317,7 @@ class TimelineEventMerged(TimelineEvent): # Pull Request Deployed class TimelineEventDeployed(TimelineEvent): - type: Literal["deployed"] + event: Literal["deployed"] id: int node_id: str url: str diff --git a/src/plugins/github/libs/issue/templates/assigned.html b/src/plugins/github/libs/issue/templates/assigned.html index 3a8989a..5631a02 100644 --- a/src/plugins/github/libs/issue/templates/assigned.html +++ b/src/plugins/github/libs/issue/templates/assigned.html @@ -2,7 +2,7 @@ * @Author : yanyongyu * @Date : 2021-08-20 23:33:46 * @LastEditors : yanyongyu - * @LastEditTime : 2021-08-20 23:37:56 + * @LastEditTime : 2021-08-20 23:49:02 * @Description : None * @GitHub : https://github.com/yanyongyu --> @@ -25,20 +25,23 @@