Skip to content

Commit

Permalink
feat: change describer
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 19, 2024
1 parent 9081442 commit d75adcc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 54 deletions.
10 changes: 1 addition & 9 deletions provider/describer/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions provider/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 0 additions & 35 deletions steampipe-plugin-github/github/models/community_profile.go

This file was deleted.

0 comments on commit d75adcc

Please sign in to comment.