Skip to content

Commit

Permalink
fix: fixed repository steampipe table
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiaBP committed Dec 22, 2024
1 parent 986e1eb commit 2aa4f42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions provider/describer/action_workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func GetAllWorkflowRuns(ctx context.Context, githubClient GitHubClient, organiza
if err != nil {
return nil, fmt.Errorf("error fetching repositories for workflow runs: %w", err)
}
log.Println(repositories)

sdk := newResilientSDK(githubClient.Token)

Expand Down
10 changes: 8 additions & 2 deletions steampipe-plugin-github/github/table_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,15 @@ func sharedRepositoryColumns() []*plugin.Column {
Description: "Source repository details if the repository is forked.",
},
{
Name: "languages",
Name: "primary_language",
Type: proto.ColumnType_STRING,
Transform: transform.FromField("Description.PrimaryLanguage"),
Description: "Primary language used in the repository.",
},
{
Name: "language_breakdown",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("Description.Languages"),
Transform: transform.FromField("Description.LanguageBreakdown"),
Description: "Languages used in the repository along with their usage statistics.",
},
{
Expand Down

0 comments on commit 2aa4f42

Please sign in to comment.