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:
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: "",
|
repo_name: "",
|
||||||
branch: "",
|
branch: "",
|
||||||
branchURL: "",
|
branchURL: "",
|
||||||
branchSince: ""
|
branchSince: "",
|
||||||
|
branchLines: 30
|
||||||
};
|
};
|
||||||
self.set('config', config);
|
self.set('config', config);
|
||||||
|
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue