mirror of
https://github.com/git-touch/git-touch
synced 2025-01-31 16:14:49 +01:00
update timeline events on issue page
This commit is contained in:
parent
02e535a271
commit
e6d129befd
@ -194,6 +194,24 @@ __typename
|
||||
login
|
||||
}
|
||||
}
|
||||
... on SubscribedEvent {
|
||||
createdAt
|
||||
actor {
|
||||
login
|
||||
}
|
||||
}
|
||||
... on MentionedEvent {
|
||||
createdAt
|
||||
actor {
|
||||
login
|
||||
}
|
||||
}
|
||||
... on PinnedEvent {
|
||||
createdAt
|
||||
actor {
|
||||
login
|
||||
}
|
||||
}
|
||||
''';
|
||||
|
||||
if (isPullRequest) {
|
||||
|
@ -128,6 +128,11 @@ class TimelineItem extends StatelessWidget {
|
||||
p: p,
|
||||
);
|
||||
case 'SubscribedEvent':
|
||||
return TimelineEventItem(
|
||||
actor: p['actor']['login'],
|
||||
textSpan: TextSpan(text: ' subscribed to this issue '),
|
||||
p: p,
|
||||
);
|
||||
case 'UnsubscribedEvent':
|
||||
return defaultItem; // TODO:
|
||||
case 'ReferencedEvent':
|
||||
@ -258,6 +263,18 @@ class TimelineItem extends StatelessWidget {
|
||||
]),
|
||||
p: p,
|
||||
);
|
||||
case 'MentionedEvent':
|
||||
return TimelineEventItem(
|
||||
actor: p['actor']['login'],
|
||||
iconData: Octicons.bookmark,
|
||||
textSpan: TextSpan(text: ' mentioned this issue '),
|
||||
);
|
||||
case 'PinnedEvent':
|
||||
return TimelineEventItem(
|
||||
actor: p['actor']['login'],
|
||||
iconData: Octicons.pin,
|
||||
textSpan: TextSpan(text: ' pinned this issue '),
|
||||
);
|
||||
case 'DeployedEvent':
|
||||
case 'DeploymentEnvironmentChangedEvent':
|
||||
return defaultItem; // TODO:
|
||||
|
Loading…
x
Reference in New Issue
Block a user