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)
|
||||
]),
|
||||
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,
|
||||
{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(
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user