Skip to content

Commit

Permalink
SubscribersCount (# of watchers) removed as per octokit/octokit.net#735
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwille committed Mar 2, 2015
1 parent 0c1be3f commit 86aabc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public RepositoryInfoViewModelDT()
ForksCount = 0,
OpenIssuesCount = 155,
StargazersCount = 2,
SubscribersCount = 20
};
}

Expand Down
5 changes: 3 additions & 2 deletions Source/WpaGhApp/Models/GhRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public static GhRepository ToModel(Octokit.Repository repo)
ForksCount = repo.ForksCount,
OpenIssuesCount = repo.OpenIssuesCount,
StargazersCount = repo.StargazersCount,
SubscribersCount = repo.SubscribersCount,
OwnerLogin = repo.Owner.Login
};
}
Expand All @@ -32,7 +31,9 @@ public static IEnumerable<GhRepository> ToModel(IReadOnlyList<Octokit.Repository
public int ForksCount { get; set; }
public int OpenIssuesCount { get; set; }
public int StargazersCount { get; set; }
public int SubscribersCount { get; set; }

// https://github.com/octokit/octokit.net/issues/735
// public int SubscribersCount { get; set; }

// Composite properties
public string OwnerLogin { get; set; }
Expand Down
4 changes: 3 additions & 1 deletion Source/WpaGhApp/Views/Repository/RepositoryInfoView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
Style="{ThemeResource SubheaderTextBlockStyle}" />
<TextBlock Text="{Binding Repository.ForksCount}"
Style="{ThemeResource BodyTextBlockStyle}" />
<!--
<TextBlock Text="Watchers"
Style="{ThemeResource SubheaderTextBlockStyle}" />
<TextBlock Text="{Binding Repository.SubscribersCount}"
Style="{ThemeResource BodyTextBlockStyle}" />
Style="{ThemeResource BodyTextBlockStyle}" /
>-->
<TextBlock Text="Stargazers"
Style="{ThemeResource SubheaderTextBlockStyle}" />
<TextBlock Text="{Binding Repository.StargazersCount}"
Expand Down

0 comments on commit 86aabc7

Please sign in to comment.