mirror of
https://github.com/git-touch/git-touch
synced 2024-12-18 11:19:28 +01:00
fix(github): pull screen router
This commit is contained in:
parent
366f09823b
commit
c3cf25bcf3
@ -57,7 +57,7 @@ class PullsScreen extends StatelessWidget {
|
|||||||
MyLabel(name: label.name, cssColor: label.color)
|
MyLabel(name: label.name, cssColor: label.color)
|
||||||
]),
|
]),
|
||||||
url:
|
url:
|
||||||
'/${p.repository.owner.login}/${p.repository.name}/pulls/${p.number}',
|
'/${p.repository.owner.login}/${p.repository.name}/pull/${p.number}',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ class EventItem extends StatelessWidget {
|
|||||||
InlineSpan _buildIssue(BuildContext context, int number,
|
InlineSpan _buildIssue(BuildContext context, int number,
|
||||||
{bool isPullRequest = false}) {
|
{bool isPullRequest = false}) {
|
||||||
return _buildLinkSpan(context, '#$number',
|
return _buildLinkSpan(context, '#$number',
|
||||||
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pulls' : 'issues'}/$number');
|
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pull' : 'issues'}/$number');
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildItem({
|
Widget _buildItem({
|
||||||
@ -186,7 +186,7 @@ class EventItem extends StatelessWidget {
|
|||||||
|
|
||||||
return Link(
|
return Link(
|
||||||
url:
|
url:
|
||||||
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pulls' : 'issues'}/${issue.number}',
|
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pull' : 'issues'}/${issue.number}',
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(12),
|
padding: EdgeInsets.all(12),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
@ -102,7 +102,7 @@ class _NotificationItemState extends State<NotificationItem> {
|
|||||||
case 'Issue':
|
case 'Issue':
|
||||||
return '/$fullName/issues/${payload.subject.number}';
|
return '/$fullName/issues/${payload.subject.number}';
|
||||||
case 'PullRequest':
|
case 'PullRequest':
|
||||||
return '/$fullName/pulls/${payload.subject.number}';
|
return '/$fullName/pull/${payload.subject.number}';
|
||||||
case 'Release':
|
case 'Release':
|
||||||
return 'https://github.com/$fullName/releases';
|
return 'https://github.com/$fullName/releases';
|
||||||
case 'Commit':
|
case 'Commit':
|
||||||
|
Loading…
Reference in New Issue
Block a user