diff --git a/provider/describer/utils.go b/provider/describer/utils.go index ddb65bd8..39718dbf 100644 --- a/provider/describer/utils.go +++ b/provider/describer/utils.go @@ -192,15 +192,6 @@ func appendCommitColumnIncludes(m *map[string]interface{}, cols []string) { (*m)["includeCommitNodeId"] = githubv4.Boolean(slices.Contains(cols, "node_id")) } -func appendCommunityProfileColumnIncludes(m *map[string]interface{}, cols []string) { - (*m)["includeCPLicense"] = githubv4.Boolean(slices.Contains(cols, "license_info")) - (*m)["includeCPCodeOfConduct"] = githubv4.Boolean(slices.Contains(cols, "code_of_conduct")) - (*m)["includeCPIssueTemplates"] = githubv4.Boolean(slices.Contains(cols, "issue_templates")) - (*m)["includeCPPullRequestTemplates"] = githubv4.Boolean(slices.Contains(cols, "pull_request_templates")) - (*m)["includeCPReadme"] = githubv4.Boolean(slices.Contains(cols, "readme")) - (*m)["includeCPContributing"] = githubv4.Boolean(slices.Contains(cols, "contributing")) - (*m)["includeCPSecurity"] = githubv4.Boolean(slices.Contains(cols, "security")) -} func appendOrganizationColumnIncludes(m *map[string]interface{}, cols []string) { (*m)["includeAnnouncement"] = githubv4.Boolean(slices.Contains(cols, "announcement")) @@ -1379,6 +1370,7 @@ func getRepositories(ctx context.Context, client *github.Client, owner string) ( if err != nil { return nil, err } + repositories = append(repositories, repos...) if resp.NextPage == 0 { break diff --git a/provider/model/model.go b/provider/model/model.go index 8ed38ca4..43786f33 100755 --- a/provider/model/model.go +++ b/provider/model/model.go @@ -139,16 +139,6 @@ type CommitDescription struct { CommitterLogin string } -type CommunityProfileDescription struct { - RepoFullName string - LicenseInfo steampipemodels.BaseLicense - CodeOfConduct steampipemodels.RepositoryCodeOfConduct - IssueTemplates []steampipemodels.IssueTemplate - PullRequestTemplates []steampipemodels.PullRequestTemplate - ReadMe steampipemodels.Blob - Contributing steampipemodels.Blob - Security steampipemodels.Blob -} type GitIgnoreDescription struct { *github.Gitignore diff --git a/steampipe-plugin-github/github/models/community_profile.go b/steampipe-plugin-github/github/models/community_profile.go deleted file mode 100644 index 8fc115fb..00000000 --- a/steampipe-plugin-github/github/models/community_profile.go +++ /dev/null @@ -1,35 +0,0 @@ -package models - -type CommunityProfile struct { - LicenseInfo BaseLicense `graphql:"licenseInfo @include(if:$includeCPLicense)" json:"license_info"` - CodeOfConduct RepositoryCodeOfConduct `graphql:"codeOfConduct @include(if:$includeCPCodeOfConduct)" json:"code_of_conduct"` - IssueTemplates []IssueTemplate `graphql:"issueTemplates @include(if:$includeCPIssueTemplates)" json:"issue_templates"` - PullRequestTemplates []PullRequestTemplate `graphql:"pullRequestTemplates @include(if:$includeCPPullRequestTemplates)" json:"pull_request_templates"` - // readme - ReadMeLower struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"readMeLower: object(expression: \"HEAD:readme.md\") @include(if:$includeCPReadme)"` - ReadMeUpper struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"readMeUpper: object(expression: \"HEAD:README.md\") @include(if:$includeCPReadme)"` - // contributing - ContributingLower struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"contributingLower: object(expression: \"HEAD:contributing.md\") @include(if:$includeCPContributing)"` - ContributingTitle struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"contributingTitle: object(expression: \"HEAD:Contributing.md\") @include(if:$includeCPContributing)"` - ContributingUpper struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"contributingUpper: object(expression: \"HEAD:CONTRIBUTING.md\") @include(if:$includeCPContributing)"` - // security - SecurityLower struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"securityLower: object(expression: \"HEAD:security.md\") @include(if:$includeCPSecurity)"` - SecurityTitle struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"securityTitle: object(expression: \"HEAD:Security.md\") @include(if:$includeCPSecurity)"` - SecurityUpper struct { - Blob Blob `graphql:"... on Blob"` - } `graphql:"securityUpper: object(expression: \"HEAD:SECURITY.md\") @include(if:$includeCPSecurity)"` -}