1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-10 07:55:25 +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: "", repo_name: "",
branch: "", branch: "",
branchURL: "", branchURL: "",
branchSince: "" branchSince: "",
branchLines: 30
}; };
self.set('config', config); self.set('config', config);

View file

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