Config example
This commit is contained in:
parent
dce771f9ea
commit
dce4c5e1d1
5
config.example.json
Normal file
5
config.example.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"github_client_id": "XXXXXXXXXXXXXXXXXXXX",
|
||||
"github_client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"github_redirect_uri": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
}
|
@ -29,7 +29,7 @@ func SyncContrib(t SyncContribTask) {
|
||||
continue
|
||||
}
|
||||
|
||||
res = append(res, &db.Contrib{
|
||||
contrib := &db.Contrib{
|
||||
Week: week.Week.Time.Unix(),
|
||||
Author: *c.Author.Login,
|
||||
Owner: t.Owner,
|
||||
@ -37,7 +37,8 @@ func SyncContrib(t SyncContribTask) {
|
||||
Commits: *week.Commits,
|
||||
Additions: *week.Additions,
|
||||
Deletions: *week.Deletions,
|
||||
})
|
||||
}
|
||||
contrib.Save()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user