1
0
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:
Rongjian Zhang 2020-01-31 13:35:49 +08:00
parent 366f09823b
commit c3cf25bcf3
3 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ class PullsScreen extends StatelessWidget {
MyLabel(name: label.name, cssColor: label.color)
]),
url:
'/${p.repository.owner.login}/${p.repository.name}/pulls/${p.number}',
'/${p.repository.owner.login}/${p.repository.name}/pull/${p.number}',
),
);
}

View File

@ -35,7 +35,7 @@ class EventItem extends StatelessWidget {
InlineSpan _buildIssue(BuildContext context, int number,
{bool isPullRequest = false}) {
return _buildLinkSpan(context, '#$number',
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pulls' : 'issues'}/$number');
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pull' : 'issues'}/$number');
}
Widget _buildItem({
@ -186,7 +186,7 @@ class EventItem extends StatelessWidget {
return Link(
url:
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pulls' : 'issues'}/${issue.number}',
'/${e.repoOwner}/${e.repoName}/${isPullRequest ? 'pull' : 'issues'}/${issue.number}',
child: Container(
padding: EdgeInsets.all(12),
decoration: BoxDecoration(

View File

@ -102,7 +102,7 @@ class _NotificationItemState extends State<NotificationItem> {
case 'Issue':
return '/$fullName/issues/${payload.subject.number}';
case 'PullRequest':
return '/$fullName/pulls/${payload.subject.number}';
return '/$fullName/pull/${payload.subject.number}';
case 'Release':
return 'https://github.com/$fullName/releases';
case 'Commit':