1
0
mirror of https://github.com/git-touch/git-touch synced 2025-03-04 11:17:47 +01:00

fix(gh): pull request router

This commit is contained in:
Rongjian Zhang 2022-10-01 02:27:21 +08:00
parent 8d1e3fa596
commit a30385a414

View File

@ -246,11 +246,16 @@ final router = GoRouter(
],
),
GoRoute(
path: 'pull',
path: 'pulls',
builder: (context, state) => GhPullsScreen(
state.params['owner']!,
state.params['name']!,
),
),
GoRoute(
path: 'pull',
redirect: (state) =>
'/github/${state.params['owner']!}/${state.params['name']!}/pulls',
routes: [
GoRoute(
path: ':number',