1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 06:25:23 +02:00

add config.BranchLines

This commit is contained in:
Elliott Stoneham 2016-06-02 15:02:46 +01:00
parent 9cebfbe219
commit 1318f424db
2 changed files with 4 additions and 2 deletions

View file

@ -48,7 +48,8 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
repo_name: "",
branch: "",
branchURL: "",
branchSince: ""
branchSince: "",
branchLines: 30
};
self.set('config', config);

View file

@ -242,7 +242,7 @@ func (*GithubT) getCommits(client *gogithub.Client, config githubConfig) ([]gith
opts := &gogithub.CommitsListOptions{
SHA: config.Branch,
ListOptions: gogithub.ListOptions{PerPage: 100}}
ListOptions: gogithub.ListOptions{PerPage: config.BranchLines}}
var since time.Time
@ -466,6 +466,7 @@ type githubConfig struct {
Branch string `json:"branch"`
BranchURL string `json:"branchURL"`
BranchSince string `json:"branchSince"`
BranchLines int `json:"branchLines"`
RepoInfo githubRepo `json:"repo"`
ClientID string `json:"clientId"`
CallbackURL string `json:"callbackUrl"`