@@ -20,49 +20,29 @@ func tableGitHubUser() *plugin.Table {
2020}
2121
2222func tableGitHubUserColumns () []* plugin.Column {
23- cols := sharedUserColumns ()
24-
25- counts := []* plugin.Column {
26- {Name : "repositories_total_disk_usage" , Type : proto .ColumnType_INT , Description : "Total disk spaced used by the users repositories." ,
27- Transform : transform .FromField ("Description.RepositoriesTotalDiskUsage" )},
28- {Name : "followers_total_count" , Type : proto .ColumnType_INT , Description : "Count of how many users this user follows." ,
29- Transform : transform .FromField ("Description.FollowersTotalCount" )},
30- {Name : "following_total_count" , Type : proto .ColumnType_INT , Description : "Count of how many users follow this user." ,
31- Transform : transform .FromField ("Description.FollowingTotalCount" )},
32- {Name : "public_repositories_total_count" , Type : proto .ColumnType_INT , Description : "Count of public repositories for the user." ,
33- Transform : transform .FromField ("Description.PublicRepositoriesTotalCount" )},
34- {Name : "private_repositories_total_count" , Type : proto .ColumnType_INT , Description : "Count of private repositories for the user." ,
35- Transform : transform .FromField ("Description.PrivateRepositoriesTotalCount" )},
36- {Name : "public_gists_total_count" , Type : proto .ColumnType_INT , Description : "Count of public gists for the user." ,
37- Transform : transform .FromField ("Description.PublicGistsTotalCount" )},
38- {Name : "issues_total_count" , Type : proto .ColumnType_INT , Description : "Count of issues associated with the user." ,
39- Transform : transform .FromField ("Description.IssuesTotalCount" )},
40- {Name : "organizations_total_count" , Type : proto .ColumnType_INT , Description : "Count of organizations the user belongs to." ,
41- Transform : transform .FromField ("Description.OrganizationsTotalCount" )},
42- {Name : "public_keys_total_count" , Type : proto .ColumnType_INT , Description : "Count of public keys associated with the user." ,
43- Transform : transform .FromField ("Description.PublicKeysTotalCount" )},
44- {Name : "open_pull_requests_total_count" , Type : proto .ColumnType_INT , Description : "Count of open pull requests associated with the user." ,
45- Transform : transform .FromField ("Description.OpenPullRequestsTotalCount" )},
46- {Name : "merged_pull_requests_total_count" , Type : proto .ColumnType_INT , Description : "Count of merged pull requests associated with the user." ,
47- Transform : transform .FromField ("Description.MergedPullRequestsTotalCount" )},
48- {Name : "closed_pull_requests_total_count" , Type : proto .ColumnType_INT , Description : "Count of closed pull requests associated with the user." ,
49- Transform : transform .FromField ("Description.ClosedPullRequestsTotalCount" )},
50- {Name : "packages_total_count" , Type : proto .ColumnType_INT , Description : "Count of packages hosted by the user." ,
51- Transform : transform .FromField ("Description.PackagesTotalCount" )},
52- {Name : "pinned_items_total_count" , Type : proto .ColumnType_INT , Description : "Count of items pinned on the users profile." ,
53- Transform : transform .FromField ("Description.PinnedItemsTotalCount" )},
54- {Name : "sponsoring_total_count" , Type : proto .ColumnType_INT , Description : "Count of users that this user is sponsoring." ,
55- Transform : transform .FromField ("Description.SponsoringTotalCount" )},
56- {Name : "sponsors_total_count" , Type : proto .ColumnType_INT , Description : "Count of users sponsoring this user." ,
57- Transform : transform .FromField ("Description.SponsorsTotalCount" )},
58- {Name : "starred_repositories_total_count" , Type : proto .ColumnType_INT , Description : "Count of repositories the user has starred." ,
59- Transform : transform .FromField ("Description.StarredRepositoriesTotalCount" )},
60- {Name : "watching_total_count" , Type : proto .ColumnType_INT , Description : "Count of repositories being watched by the user." ,
61- Transform : transform .FromField ("Description.WatchingTotalCount" )},
23+ cols := []* plugin.Column {
24+ {Name : "login" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
25+ Transform : transform .FromField ("Description.Login" )},
26+ {Name : "id" , Type : proto .ColumnType_INT , Description : "Total disk spaced used by the users repositories." ,
27+ Transform : transform .FromField ("Description.ID" )},
28+ {Name : "node_id" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
29+ Transform : transform .FromField ("Description.NodeId" )},
30+ {Name : "name" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
31+ Transform : transform .FromField ("Description.Name" )},
32+ {Name : "email" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
33+ Transform : transform .FromField ("Description.Email" )},
34+ {Name : "company" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
35+ Transform : transform .FromField ("Description.Company" )},
36+ {Name : "location" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
37+ Transform : transform .FromField ("Description.Location" )},
38+ {Name : "url" , Type : proto .ColumnType_STRING , Description : "Total disk spaced used by the users repositories." ,
39+ Transform : transform .FromField ("Description.Url" )},
40+ {Name : "created_at" , Type : proto .ColumnType_TIMESTAMP , Description : "Total disk spaced used by the users repositories." ,
41+ Transform : transform .FromField ("Description.CreatedAt" )},
42+ {Name : "updated_at" , Type : proto .ColumnType_TIMESTAMP , Description : "Total disk spaced used by the users repositories." ,
43+ Transform : transform .FromField ("Description.UpdatedAt" )},
6244 }
6345
64- cols = append (cols , counts ... )
65-
6646 return cols
6747}
6848
0 commit comments