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:
parent
9cebfbe219
commit
1318f424db
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,8 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
|
|||
repo_name: "",
|
||||
branch: "",
|
||||
branchURL: "",
|
||||
branchSince: ""
|
||||
branchSince: "",
|
||||
branchLines: 30
|
||||
};
|
||||
self.set('config', config);
|
||||
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue