File tree 1 file changed +4
-0
lines changed
examples/github-app/src/resources
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 4
4
ExclamationCircleOutlined ,
5
5
EyeOutlined ,
6
6
PullRequestOutlined ,
7
+ ForkOutlined ,
7
8
} from '@ant-design/icons' ;
8
9
import { schema } from '@data-client/rest' ;
9
10
import { Temporal } from '@js-temporal/polyfill' ;
@@ -87,6 +88,7 @@ export const EventResource = githubResource({
87
88
PullRequestEvent,
88
89
IssuesEvent,
89
90
PushEvent,
91
+ ForkEvent : Event ,
90
92
PullRequestReviewEvent,
91
93
IssueCommentEvent : Event ,
92
94
PullRequestReviewCommentEvent : Event ,
@@ -105,6 +107,7 @@ export const EventResource = githubResource({
105
107
export const typeToIcon : Record < Event [ 'type' ] , JSX . Element > = {
106
108
PullRequestEvent : < PullRequestOutlined /> ,
107
109
PushEvent : < CloudUploadOutlined /> ,
110
+ ForkEvent : < ForkOutlined /> ,
108
111
WatchEvent : < EyeOutlined /> ,
109
112
IssueCommentEvent : < CommentOutlined /> ,
110
113
PullRequestReviewEvent : < EyeOutlined /> ,
@@ -114,6 +117,7 @@ export const typeToIcon: Record<Event['type'], JSX.Element> = {
114
117
type EventType =
115
118
| 'WatchEvent'
116
119
| 'PushEvent'
120
+ | 'ForkEvent'
117
121
| 'IssuesEvent'
118
122
| 'IssueCommentEvent'
119
123
| 'CreateEvent'
You can’t perform that action at this time.
0 commit comments