Skip to content

Commit 39ceedd

Browse files
committed
feat: added organization to common columns
1 parent bc3a6bc commit 39ceedd

39 files changed

+11
-218
lines changed

cloudql/github/common_column.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import (
1313

1414
func commonColumns(c []*plugin.Column) []*plugin.Column {
1515
return append(c, []*plugin.Column{
16+
{
17+
Name: "organization_name",
18+
Type: proto.ColumnType_STRING,
19+
Transform: transform.FromField("Description.Organization"),
20+
Description: "organization name",
21+
},
1622
{
1723
Name: "platform_integration_id",
1824
Type: proto.ColumnType_STRING,

cloudql/github/table_github_actions_artifact.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ func tableGitHubActionsArtifact() *plugin.Table {
3333
Transform: transform.FromField("Description.RepositoryName"),
3434
Description: "repository name",
3535
},
36-
{
37-
Name: "organization",
38-
Type: proto.ColumnType_STRING,
39-
Transform: transform.FromField("Description.Organization"),
40-
Description: "organization name",
41-
},
4236
{
4337
Name: "name",
4438
Type: proto.ColumnType_STRING,

cloudql/github/table_github_actions_runner.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ func tableGitHubActionsRepositoryRunner() *plugin.Table {
3333
Transform: transform.FromField("Description.RepositoryName"),
3434
Description: "repository name",
3535
},
36-
{
37-
Name: "organization",
38-
Type: proto.ColumnType_STRING,
39-
Transform: transform.FromField("Description.Organization"),
40-
Description: "organization name",
41-
},
4236
{
4337
Name: "id",
4438
Type: proto.ColumnType_INT,

cloudql/github/table_github_actions_secret.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ func tableGitHubActionsRepositorySecret() *plugin.Table {
3434
Transform: transform.FromField("Description.RepositoryName"),
3535
Description: "repository name",
3636
},
37-
{
38-
Name: "organization",
39-
Type: proto.ColumnType_STRING,
40-
Transform: transform.FromField("Description.Organization"),
41-
Description: "organization name",
42-
},
4337
{
4438
Name: "name",
4539
Type: proto.ColumnType_STRING,

cloudql/github/table_github_actions_workflow_run.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ func tableGitHubActionsRepositoryWorkflowRun() *plugin.Table {
2727
Transform: transform.FromField("Description.RepositoryFullName"),
2828
Description: "repository full name",
2929
},
30-
{
31-
Name: "organization",
32-
Type: proto.ColumnType_STRING,
33-
Transform: transform.FromField("Description.Organization"),
34-
Description: "organization name",
35-
},
3630
{
3731
Name: "repository_name",
3832
Type: proto.ColumnType_STRING,

cloudql/github/table_github_artifact_dockerfile.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ func tableGitHubArtifactDockerFile() *plugin.Table {
2525
Transform: transform.FromField("Description.RepositoryFullName"),
2626
Description: "repository full name",
2727
},
28-
{
29-
Name: "organization",
30-
Type: proto.ColumnType_STRING,
31-
Transform: transform.FromField("Description.Organization"),
32-
Description: "organization name",
33-
},
3428
{
3529
Name: "repository_name",
3630
Type: proto.ColumnType_STRING,

cloudql/github/table_github_branch.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ func tableGitHubBranch() *plugin.Table {
2222
Transform: transform.FromField("Description.RepoFullName"),
2323
Description: "Full name of the repository that contains the branch.",
2424
},
25-
{
26-
Name: "organization",
27-
Type: proto.ColumnType_STRING,
28-
Transform: transform.FromField("Description.Organization"),
29-
Description: "organization name",
30-
},
3125
{
3226
Name: "repository_name",
3327
Type: proto.ColumnType_STRING,

cloudql/github/table_github_branch_protection.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ func tableGitHubBranchProtection() *plugin.Table {
2727
Transform: transform.FromField("Description.RepoFullName"),
2828
Description: "The full name of the repository (login/repo-name).",
2929
},
30-
{
31-
Name: "organization",
32-
Type: proto.ColumnType_STRING,
33-
Transform: transform.FromField("Description.Organization"),
34-
Description: "organization name",
35-
},
3630
{
3731
Name: "repository_name",
3832
Type: proto.ColumnType_STRING,

cloudql/github/table_github_commit.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ func tableGitHubCommit() *plugin.Table {
2727
Transform: transform.FromField("Description.RepositoryFullName"),
2828
Description: "repository full name",
2929
},
30-
{
31-
Name: "organization",
32-
Type: proto.ColumnType_STRING,
33-
Transform: transform.FromField("Description.Organization"),
34-
Description: "organization name",
35-
},
3630
{
3731
Name: "repository_name",
3832
Type: proto.ColumnType_STRING,

cloudql/github/table_github_container_package.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ func tableGitHubContainerPackage() *plugin.Table {
2323
Type: proto.ColumnType_INT,
2424
Transform: transform.FromField("Description.ID"),
2525
Description: "Unique identifier for the package."},
26-
{
27-
Name: "organization",
28-
Type: proto.ColumnType_STRING,
29-
Transform: transform.FromField("Description.Organization"),
30-
Description: "organization name",
31-
},
3226
{
3327
Name: "digest",
3428
Type: proto.ColumnType_STRING,

0 commit comments

Comments
 (0)