mirror of
https://github.com/git-touch/git-touch
synced 2025-02-06 02:33:33 +01:00
fix: commit history count
This commit is contained in:
parent
fadb053b95
commit
50cfd48e51
@ -1055,6 +1055,12 @@ class GithubRepositoryQuery
|
|||||||
arguments: [],
|
arguments: [],
|
||||||
directives: [],
|
directives: [],
|
||||||
selectionSet: SelectionSetNode(selections: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: '__typename'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null),
|
||||||
InlineFragmentNode(
|
InlineFragmentNode(
|
||||||
typeCondition: TypeConditionNode(
|
typeCondition: TypeConditionNode(
|
||||||
on: NamedTypeNode(
|
on: NamedTypeNode(
|
||||||
@ -1110,6 +1116,12 @@ class GithubRepositoryQuery
|
|||||||
arguments: [],
|
arguments: [],
|
||||||
directives: [],
|
directives: [],
|
||||||
selectionSet: SelectionSetNode(selections: [
|
selectionSet: SelectionSetNode(selections: [
|
||||||
|
FieldNode(
|
||||||
|
name: NameNode(value: '__typename'),
|
||||||
|
alias: null,
|
||||||
|
arguments: [],
|
||||||
|
directives: [],
|
||||||
|
selectionSet: null),
|
||||||
InlineFragmentNode(
|
InlineFragmentNode(
|
||||||
typeCondition: TypeConditionNode(
|
typeCondition: TypeConditionNode(
|
||||||
on: NamedTypeNode(
|
on: NamedTypeNode(
|
||||||
|
@ -59,6 +59,7 @@ query(
|
|||||||
defaultBranchRef @skip(if: $branchSpecified) {
|
defaultBranchRef @skip(if: $branchSpecified) {
|
||||||
name
|
name
|
||||||
target {
|
target {
|
||||||
|
__typename
|
||||||
... on Commit {
|
... on Commit {
|
||||||
history {
|
history {
|
||||||
totalCount
|
totalCount
|
||||||
@ -69,6 +70,7 @@ query(
|
|||||||
ref(qualifiedName: $branch) @include(if: $branchSpecified) {
|
ref(qualifiedName: $branch) @include(if: $branchSpecified) {
|
||||||
name
|
name
|
||||||
target {
|
target {
|
||||||
|
__typename
|
||||||
... on Commit {
|
... on Commit {
|
||||||
history {
|
history {
|
||||||
totalCount
|
totalCount
|
||||||
|
@ -230,8 +230,13 @@ class RepositoryScreen extends StatelessWidget {
|
|||||||
TableViewItem(
|
TableViewItem(
|
||||||
leftIconData: Octicons.history,
|
leftIconData: Octicons.history,
|
||||||
text: Text('Commits'),
|
text: Text('Commits'),
|
||||||
// rightWidget: Text(numberFormat
|
rightWidget: Text(
|
||||||
// .format(ref['target']['history']['totalCount'])),
|
numberFormat.format(
|
||||||
|
(ref.target as GithubRepositoryCommit)
|
||||||
|
.history
|
||||||
|
?.totalCount,
|
||||||
|
),
|
||||||
|
),
|
||||||
screenBuilder: (_) =>
|
screenBuilder: (_) =>
|
||||||
CommitsScreen(owner, name, branch: branch),
|
CommitsScreen(owner, name, branch: branch),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user