diff --git a/src/libs/github/models/issue.py b/src/libs/github/models/issue.py index 1d87ba2..855395f 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 01:11:35 +@LastEditTime : 2021-08-20 23:24:08 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -27,10 +27,10 @@ from .timeline import ( TimelineEventSubscribed, TimelineEventUnsubscribed, TimelineEventReviewed, TimelineEventReviewRequested, TimelineEventReviewRemoved, TimelineEventReviewDismissed, TimelineEventRenamed, TimelineEventLabeled, - TimelineEventUnlabeled, TimelineEventMerged, TimelineEventClosed, - TimelineEventAddedToProject, TimelineEventMovedColumnsInProject, - TimelineEventRemovedFromProject, TimelineEventMilestoned, - TimelineEventDemilestoned) + TimelineEventUnlabeled, TimelineEventMerged, TimelineEventDeployed, + TimelineEventClosed, TimelineEventAddedToProject, + TimelineEventMovedColumnsInProject, TimelineEventRemovedFromProject, + TimelineEventMilestoned, TimelineEventDemilestoned) class IssuePullRequest(_BaseModel): @@ -107,8 +107,8 @@ class Issue(BaseModel): TimelineEventReviewRequested, TimelineEventReviewRemoved, TimelineEventReviewDismissed, TimelineEventRenamed, TimelineEventLabeled, TimelineEventUnlabeled, - TimelineEventMerged, TimelineEventClosed, - TimelineEventAddedToProject, + TimelineEventMerged, TimelineEventDeployed, + TimelineEventClosed, TimelineEventAddedToProject, TimelineEventMovedColumnsInProject, TimelineEventRemovedFromProject, TimelineEventMilestoned, TimelineEventDemilestoned, TimelineEvent], diff --git a/src/libs/github/models/timeline.py b/src/libs/github/models/timeline.py index 249c94b..fe959dd 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 01:15:57 +@LastEditTime : 2021-08-20 23:23:33 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -301,6 +301,18 @@ class TimelineEventMerged(TimelineEvent): created_at: datetime +# Pull Request Deployed +class TimelineEventDeployed(TimelineEvent): + type: Literal["deployed"] + id: int + node_id: str + url: str + actor: Actor + commit_id: Optional[str] + commit_url: Optional[str] + created_at: datetime + + # Issue Closed class TimelineEventClosed(TimelineEvent): event: Literal["closed"] diff --git a/src/plugins/github/libs/issue/templates/deployed.html b/src/plugins/github/libs/issue/templates/deployed.html new file mode 100644 index 0000000..ee6a53a --- /dev/null +++ b/src/plugins/github/libs/issue/templates/deployed.html @@ -0,0 +1,40 @@ + + +