Update CommitMeta Struct (#434) #451

Merged
6543 merged 4 commits from 6543/go-sdk:backport_update-CommitMeta_434 into release/v0.13 2020-11-09 22:08:23 +00:00
2 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,9 @@ type Identity struct {
// CommitMeta contains meta information of a commit in terms of API.
type CommitMeta struct {
URL string `json:"url"`
SHA string `json:"sha"`
URL string `json:"url"`
SHA string `json:"sha"`
Created time.Time `json:"created"`
}
// CommitUser contains information of a user in the context of a commit.

View File

@ -66,7 +66,7 @@ func TestRepoMigrateAndLanguages(t *testing.T) {
assert.NoError(t, err)
assert.Len(t, lang, 2)
assert.True(t, 217441 < lang["Go"])
assert.EqualValues(t, 3578, lang["Makefile"])
assert.True(t, 3614 < lang["Makefile"] && 6000 > lang["Makefile"])
}
func TestSearchRepo(t *testing.T) {