Quellcode durchsuchen

Synced GoVendor

Yoginth vor 7 Jahren
Ursprung
Commit
1d197c1b26
2 geänderte Dateien mit 22 neuen und 7 gelöschten Zeilen
  1. 20 5
      vendor/gitlab.com/gitote/go-gitote-client/user.go
  2. 2 2
      vendor/vendor.json

+ 20 - 5
vendor/gitlab.com/gitote/go-gitote-client/user.go

@@ -3,15 +3,30 @@ package gitote
 import (
 	"encoding/json"
 	"fmt"
+	"time"
 )
 
 // User represents a API user.
 type User struct {
-	ID        int64  `json:"id"`
-	UserName  string `json:"login"`
-	FullName  string `json:"full_name"`
-	Email     string `json:"email"`
-	AvatarUrl string `json:"avatar_url"`
+	ID               int64     `json:"id"`
+	UserName         string    `json:"login"`
+	FullName         string    `json:"full_name"`
+	Website          string    `json:"website"`
+	Email            string    `json:"email"`
+	Company          string    `json:"company"`
+	Location         string    `json:"location"`
+	Description      string    `json:"bio"`
+	IsAdmin          bool      `json:"site_admin"`
+	NumRepos         int       `json:"repos"`
+	Created          time.Time `json:"created_at"`
+	Updated          time.Time `json:"updated_at"`
+	NumFollowing     int       `json:"following"`
+	NumFollowers     int       `json:"followers"`
+	AvatarUrl        string    `json:"avatar_url"`
+	FollowersURL     string    `json:"followers_url"`
+	FollowingURL     string    `json:"following_url"`
+	OrganizationsURL string    `json:"organizations_url"`
+	ReposURL         string    `json:"repos_url"`
 }
 
 // MarshalJSON implements the json.Marshaler interface for User

+ 2 - 2
vendor/vendor.json

@@ -471,9 +471,9 @@
 			"revisionTime": "2018-08-17T15:03:56Z"
 		},
 		{
-			"checksumSHA1": "37v9Ms8mtUhHl9fiGU6SltDblUc=",
+			"checksumSHA1": "J/f+QGYC5Taz51+I4iWEWnjUPQw=",
 			"path": "gitlab.com/gitote/go-gitote-client",
-			"revision": "a0852fcc5dfa3854b8f202f5316c7a1ab830dbaf",
+			"revision": "ee1e4755b3afc9d52bfcf5f672ed96d24147d5cf",
 			"revisionTime": "2017-06-02T18:25:02Z"
 		},
 		{