1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 08:04:51 +01:00

feat: add project entry

This commit is contained in:
Rongjian Zhang 2019-09-27 02:09:02 +08:00
parent 3f2b9ed566
commit 01d7fd2fc1

View File

@ -56,6 +56,7 @@ class RepositoryScreen extends StatelessWidget {
url
viewerHasStarred
viewerSubscription
projectsResourcePath
watchers {
totalCount
}
@ -75,6 +76,9 @@ class RepositoryScreen extends StatelessWidget {
pullRequests(states: OPEN) {
totalCount
}
projects {
totalCount
}
releases {
totalCount
}
@ -303,6 +307,13 @@ class RepositoryScreen extends StatelessWidget {
screenBuilder: (_) => IssuesScreen(
owner: owner, name: name, isPullRequest: true),
),
TableViewItem(
leftIconData: Octicons.project,
text: Text('Projects'),
rightWidget: Text(
numberFormat.format(payload['projects']['totalCount'])),
url: 'https://github.com' + payload['projectsResourcePath'],
),
],
),
borderView1,