diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..8daf154 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "tabWidth": 2, + "useTabs": false, + "endOfLine": "lf", + "singleQuote": false +} diff --git a/src/libs/github/models/issue.py b/src/libs/github/models/issue.py index 4a97283..049d660 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-05-14 01:45:44 +@LastEditTime : 2021-05-14 18:13:34 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -40,6 +40,7 @@ class Issue(BaseModel): labels_url: str comments_url: str events_url: str + timeline_url: str html_url: str number: int state: str @@ -93,5 +94,5 @@ class Issue(BaseModel): TimelineEventReviewed, TimelineEventRenamed], self.requester, "GET", - f"{self.url}/timeline", + self.timeline_url, headers=headers) diff --git a/src/libs/github/models/timeline.py b/src/libs/github/models/timeline.py index d17c13e..93bf1fd 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-05-14 02:18:47 +@LastEditTime : 2021-05-14 18:13:03 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -73,7 +73,6 @@ class TimelineEventCommented(TimelineEvent): body: str body_text: Optional[str] body_html: Optional[str] - performed_via_github_app: bool actor: User @@ -117,4 +116,3 @@ class TimelineEventRenamed(TimelineEvent): commit_url: Optional[str] created_at: datetime rename: TimelineEventRenamedDetail - performed_via_github_app: Optional[bool] diff --git a/src/plugins/github/libs/issue/issue.html b/src/plugins/github/libs/issue/issue.html new file mode 100644 index 0000000..4e2b9a8 --- /dev/null +++ b/src/plugins/github/libs/issue/issue.html @@ -0,0 +1,128 @@ + + + +
+ + + + + + + + +