Skip to content

Commit

Permalink
fix(github): head ref name
Browse files Browse the repository at this point in the history
closes #116
  • Loading branch information
pd4d10 committed Oct 11, 2020
1 parent daf5c8a commit 1d1804f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions lib/screens/gh_issue.dart
Expand Up @@ -314,9 +314,7 @@ __typename
login
}
pullRequest {
headRef {
name
}
headRefName
}
}
... on BaseRefForcePushedEvent {
Expand All @@ -342,9 +340,7 @@ __typename
login
}
pullRequest {
headRef {
name
}
headRefName
}
beforeCommit {
oid
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/timeline_item.dart
Expand Up @@ -358,7 +358,7 @@ class TimelineItem extends StatelessWidget {
textSpan: TextSpan(children: [
TextSpan(text: ' restored the '),
WidgetSpan(
child: PrimerBranchName(p['pullRequest']['headRef']['name'])),
child: PrimerBranchName(p['pullRequest']['headRefName'])),
TextSpan(text: ' branch')
]),
);
Expand All @@ -370,7 +370,7 @@ class TimelineItem extends StatelessWidget {
children: [
TextSpan(text: ' force-pushed the '),
WidgetSpan(
child: PrimerBranchName(p['pullRequest']['headRef']['name'])),
child: PrimerBranchName(p['pullRequest']['headRefName'])),
TextSpan(text: ' branch from '),
TextSpan(
text: (p['beforeCommit']['oid'] as String).substring(0, 7),
Expand Down

0 comments on commit 1d1804f

Please sign in to comment.