diff --git a/app/app/components/section/github/type-editor.js b/app/app/components/section/github/type-editor.js index 1badf76b..4638fb3e 100644 --- a/app/app/components/section/github/type-editor.js +++ b/app/app/components/section/github/type-editor.js @@ -48,7 +48,8 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin, repo_name: "", branch: "", branchURL: "", - branchSince: "" + branchSince: "", + branchLines: 30 }; self.set('config', config); diff --git a/documize/section/github/github.go b/documize/section/github/github.go index 21ea8ca3..438490c2 100644 --- a/documize/section/github/github.go +++ b/documize/section/github/github.go @@ -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"`