@@ -9,56 +9,37 @@ import (
99
1010func gitHubTeamColumns () []* plugin.Column {
1111 return []* plugin.Column {
12- {Name : "slug" ,
13- Transform : transform .FromField ("Description.Slug" ),
14- Type : proto .ColumnType_STRING , Description : "The team slug name." },
12+ {Name : "id" , Type : proto .ColumnType_INT , Description : "The ID of the team." ,
13+ Transform : transform .FromField ("Description.ID" )},
1514 {Name : "name" ,
1615 Transform : transform .FromField ("Description.Name" ),
1716 Type : proto .ColumnType_STRING , Description : "The name of the team." },
18- {Name : "id" , Type : proto .ColumnType_INT , Description : "The ID of the team." ,
19- Transform : transform .FromField ("Description.ID" )},
2017 {Name : "node_id" , Type : proto .ColumnType_STRING , Description : "The node id of the team." ,
2118 Transform : transform .FromField ("Description.NodeID" )},
19+ {Name : "slug" , Type : proto .ColumnType_STRING , Description : "The node id of the team." ,
20+ Transform : transform .FromField ("Description.Slug" )},
2221 {Name : "description" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
2322 Transform : transform .FromField ("Description.Description" )},
24- {Name : "created_at" , Type : proto .ColumnType_TIMESTAMP , Description : "Timestamp when team was created." ,
25- Transform : transform .FromField ("Description.CreatedAt" ).NullIfZero ().Transform (convertTimestamp )},
26- {Name : "updated_at" , Type : proto .ColumnType_TIMESTAMP , Description : "Timestamp when team was last updated." ,
27- Transform : transform .FromField ("Description.UpdatedAt" ).NullIfZero ().Transform (convertTimestamp )},
28- {Name : "combined_slug" , Type : proto .ColumnType_STRING , Description : "The slug corresponding to the organization and the team." ,
29- Transform : transform .FromField ("Description.CombinedSlug" )},
30- {Name : "parent_team" , Type : proto .ColumnType_JSON , Description : "The teams parent team." ,
31- Transform : transform .FromField ("Description.ParentTeam" )},
32- {Name : "privacy" , Type : proto .ColumnType_STRING , Description : "The privacy setting of the team (VISIBLE or SECRET)." ,
23+ {Name : "privacy" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
3324 Transform : transform .FromField ("Description.Privacy" )},
34- {Name : "ancestors_total_count" , Type : proto .ColumnType_INT , Description : "Count of ancestors this team has." ,
35- Transform : transform .FromField ("Description.AncestorsTotalCount" )},
36- {Name : "child_teams_total_count" , Type : proto .ColumnType_INT , Description : "Count of children teams this team has." ,
37- Transform : transform .FromField ("Description.ChildTeamsTotalCount" )},
38- {Name : "discussions_total_count" , Type : proto .ColumnType_INT , Description : "Count of team discussions." ,
39- Transform : transform .FromField ("Description.DiscussionsTotalCount" )},
40- {Name : "invitations_total_count" , Type : proto .ColumnType_INT , Description : "Count of outstanding team member invitations for the team." ,
41- Transform : transform .FromField ("Description.InvitationsTotalCount" )},
42- {Name : "members_total_count" , Type : proto .ColumnType_INT , Description : "Count of team members." ,
43- Transform : transform .FromField ("Description.MembersTotalCount" )},
44- {Name : "projects_v2_total_count" , Type : proto .ColumnType_INT , Description : "Count of the teams v2 projects." ,
45- Transform : transform .FromField ("Description.ProjectsV2TotalCount" )},
46- {Name : "repositories_total_count" , Type : proto .ColumnType_INT , Description : "Count of repositories the team has." ,
47- Transform : transform .FromField ("Description.RepositoriesTotalCount" )},
48- {Name : "url" , Type : proto .ColumnType_STRING , Description : "URL for the team page in GitHub." ,
25+ {Name : "notification_setting" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
26+ Transform : transform .FromField ("Description.NotificationSetting" )},
27+ {Name : "url" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
4928 Transform : transform .FromField ("Description.URL" )},
50- {Name : "discussions_url" , Type : proto .ColumnType_STRING , Description : "URL for team discussions." ,
51- Transform : transform .FromField ("Description.DiscussionsURL" )},
52- {Name : "members_url" , Type : proto .ColumnType_STRING , Description : "URL for team members." ,
53- Transform : transform .FromField ("Description.MembersURL" )},
54- {Name : "new_team_url" , Type : proto .ColumnType_STRING , Description : "The HTTP URL creating a new team." ,
55- Transform : transform .FromField ("Description.NewTeamURL" )},
56- {Name : "repositories_url" , Type : proto .ColumnType_STRING , Description : "URL for team repositories." ,
57- Transform : transform .FromField ("Description.RepositoriesURL" )},
58- {Name : "teams_url" , Type : proto .ColumnType_STRING , Description : "URL for this team's teams." ,
59- Transform : transform .FromField ("Description.TeamsURL" )},
60- {Name : "subscription" , Type : proto .ColumnType_STRING , Description : "Subscription status of the current user to the team." ,
61- Transform : transform .FromField ("Description.Subscription" )},
29+ {Name : "html_url" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
30+ Transform : transform .FromField ("Description.HTMLURL" )},
31+ {Name : "permission" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
32+ Transform : transform .FromField ("Description.Permission" )},
33+ {Name : "members_count" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
34+ Transform : transform .FromField ("Description.MembersCount" )},
35+ {Name : "organization_id" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
36+ Transform : transform .FromField ("Description.OrganizationID" )},
37+ {Name : "repos_count" , Type : proto .ColumnType_STRING , Description : "The description of the team." ,
38+ Transform : transform .FromField ("Description.ReposCount" )},
39+ {Name : "parent_team_id" , Type : proto .ColumnType_INT , Description : "The description of the team." ,
40+ Transform : transform .FromField ("Description.ParentTeamID" )},
41+ {Name : "team_sync" , Type : proto .ColumnType_JSON , Description : "The description of the team." ,
42+ Transform : transform .FromField ("Description.TeamSync" )},
6243 }
6344}
6445
0 commit comments