Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions github/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func retryConfig() *plugin.RetryConfig {
}
}

// function which returns an ErrorPredicate for GitHub API calls
func isNotFoundError(notFoundErrors []string) plugin.ErrorPredicate {
return func(err error) bool {
// function which returns an ErrorPredicateWithContext for GitHub API calls
func isNotFoundError(notFoundErrors []string) plugin.ErrorPredicateWithContext {
return func(_ context.Context, _ *plugin.QueryData, _ *plugin.HydrateData, err error) bool {
if err != nil {
for _, item := range notFoundErrors {
if strings.Contains(err.Error(), item) {
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsArtifact() *plugin.Table {
Name: "github_actions_artifact",
Description: "Artifacts allow you to share data between jobs in a workflow and store data once that workflow has completed.",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubArtifactList,
KeyColumns: plugin.SingleColumn("repository_full_name"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubArtifactList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "id"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubArtifactGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "id"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubArtifactGet,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
4 changes: 2 additions & 2 deletions github/table_github_actions_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func tableGitHubActionsCache() *plugin.Table {
{Name: "key", Require: plugin.Optional},
{Name: "ref", Require: plugin.Optional},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubCacheList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubCacheList,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_environment_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsEnvironmentVariable() *plugin.Table {
Name: "github_actions_environment_variable",
Description: "Variables are unencrypted environment variables that you create in a repository environment for use in GitHub Actions workflows.",
List: &plugin.ListConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "environment_name"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubEnvVariableList,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "environment_name"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubEnvVariableList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "environment_name", "name"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubEnvVariableGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "environment_name", "name"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubEnvVariableGet,
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromQual("repository_full_name"), Description: "Full name of the repository that contains the environment."},
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_organization_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsOrganizationVariable() *plugin.Table {
Name: "github_actions_organization_variable",
Description: "Variables are unencrypted environment variables created in an organization for use in GitHub Actions workflows.",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("organization"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubOrgVariableList,
KeyColumns: plugin.SingleColumn("organization"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubOrgVariableList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"organization", "name"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubOrgVariableGet,
KeyColumns: plugin.AllColumns([]string{"organization", "name"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubOrgVariableGet,
},
Columns: commonColumns([]*plugin.Column{
{Name: "organization", Type: proto.ColumnType_STRING, Transform: transform.FromQual("organization"), Description: "The organization name."},
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_repository_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsRepositoryRunner() *plugin.Table {
Name: "github_actions_repository_runner",
Description: "The runner is the application that runs a job from a GitHub Actions workflow",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRunnerList,
KeyColumns: plugin.SingleColumn("repository_full_name"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRunnerList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "id"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRunnerGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "id"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRunnerGet,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_repository_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsRepositorySecret() *plugin.Table {
Name: "github_actions_repository_secret",
Description: "Secrets are encrypted environment variables that you create in a repository",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoSecretList,
KeyColumns: plugin.SingleColumn("repository_full_name"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoSecretList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "name"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoSecretGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "name"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoSecretGet,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
12 changes: 6 additions & 6 deletions github/table_github_actions_repository_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ func tableGitHubActionsRepositoryVariable() *plugin.Table {
Name: "github_actions_repository_variable",
Description: "Variables are unencrypted environment variables created in a repository for use in GitHub Actions workflows.",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoVariableList,
KeyColumns: plugin.SingleColumn("repository_full_name"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoVariableList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "name"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoVariableGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "name"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoVariableGet,
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromQual("repository_full_name"), Description: "Full name of the repository that contains the variable."},
Expand Down
8 changes: 4 additions & 4 deletions github/table_github_actions_repository_workflow_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ func tableGitHubActionsRepositoryWorkflowJob() *plugin.Table {
{Name: "repository_full_name", Require: plugin.Required},
{Name: "run_id", Require: plugin.Required},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoWorkflowJobList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoWorkflowJobList,
},
Get: &plugin.GetConfig{
KeyColumns: []*plugin.KeyColumn{
{Name: "repository_full_name", Require: plugin.Required, Operators: []string{"="}},
{Name: "id", Require: plugin.Required, Operators: []string{"="}},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoWorkflowJobGet,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoWorkflowJobGet,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
8 changes: 4 additions & 4 deletions github/table_github_actions_repository_workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func tableGitHubActionsRepositoryWorkflowRun() *plugin.Table {
Name: "github_actions_repository_workflow_run",
Description: "WorkflowRun represents a repository action workflow run",
List: &plugin.ListConfig{
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoWorkflowRunList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoWorkflowRunList,
KeyColumns: []*plugin.KeyColumn{
{Name: "repository_full_name", Require: plugin.Required},
{Name: "workflow_id", Require: plugin.Optional},
Expand All @@ -37,8 +37,8 @@ func tableGitHubActionsRepositoryWorkflowRun() *plugin.Table {
{Name: "id", Require: plugin.Required, Operators: []string{"="}},
{Name: "run_attempt", Require: plugin.Optional, Operators: []string{"="}, CacheMatch: query_cache.CacheMatchExact},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepoWorkflowRunGet,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepoWorkflowRunGet,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
4 changes: 2 additions & 2 deletions github/table_github_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ func tableGitHubBlob() *plugin.Table {
Name: "github_blob",
Description: "Gets a blob from a repository.",
List: &plugin.ListConfig{
Hydrate: tableGitHubBlobList,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubBlobList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
KeyColumns: []*plugin.KeyColumn{
{Name: "repository_full_name", Require: plugin.Required},
{Name: "blob_sha", Require: plugin.Required},
Expand Down
4 changes: 2 additions & 2 deletions github/table_github_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func tableGitHubBranch() *plugin.Table {
KeyColumns: []*plugin.KeyColumn{
{Name: "repository_full_name", Require: plugin.Required},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubBranchList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubBranchList,
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromQual("repository_full_name"), Description: "Full name of the repository that contains the branch."},
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_code_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func tableGitHubCodeOwner() *plugin.Table {
Name: "github_code_owner",
Description: "Individuals or teams that are responsible for code in a repository.",
List: &plugin.ListConfig{
Hydrate: tableGitHubCodeOwnerList,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
KeyColumns: plugin.SingleColumn("repository_full_name"),
Hydrate: tableGitHubCodeOwnerList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
KeyColumns: plugin.SingleColumn("repository_full_name"),
},
Columns: commonColumns(gitHubCodeOwnerColumns()),
}
Expand Down
8 changes: 4 additions & 4 deletions github/table_github_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ func tableGitHubCommit() *plugin.Table {
Name: "github_commit",
Description: "GitHub Commits bundle project files for download by users.",
List: &plugin.ListConfig{
ShouldIgnoreError: isNotFoundError([]string{"404"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
KeyColumns: []*plugin.KeyColumn{
{Name: "repository_full_name", Require: plugin.Required},
{Name: "authored_date", Require: plugin.Optional, Operators: []string{">", ">=", "=", "<", "<="}},
},
Hydrate: tableGitHubCommitList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "sha"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubCommitGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "sha"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubCommitGet,
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromQual("repository_full_name"), Description: "Full name of the repository that contains the commit."},
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_community_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ func tableGitHubCommunityProfile() *plugin.Table {
Name: "github_community_profile",
Description: "Community profile information for the given repository.",
List: &plugin.ListConfig{
KeyColumns: plugin.SingleColumn("repository_full_name"),
Hydrate: tableGitHubCommunityProfileList,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
KeyColumns: plugin.SingleColumn("repository_full_name"),
Hydrate: tableGitHubCommunityProfileList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Transform: transform.FromQual("repository_full_name"), Description: "Full name of the repository that contains the tag."},
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_gist.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func tableGitHubGist() *plugin.Table {
Name: "github_gist",
Description: "GitHub Gist is a simple way to share snippets and pastes with others.",
List: &plugin.ListConfig{
Hydrate: tableGitHubGistList,
KeyColumns: plugin.SingleColumn("id"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubGistList,
KeyColumns: plugin.SingleColumn("id"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
},
Columns: commonColumns(gitHubGistColumns()),
}
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_gitignore.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func tableGitHubGitignore() *plugin.Table {
Hydrate: tableGitHubGitignoreList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.SingleColumn("name"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubGitignoreGetData,
KeyColumns: plugin.SingleColumn("name"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubGitignoreGetData,
},
Columns: commonColumns([]*plugin.Column{
// Top columns
Expand Down
10 changes: 5 additions & 5 deletions github/table_github_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ func tableGitHubIssue() *plugin.Table {
Operators: []string{">", ">="},
},
},
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepositoryIssueList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepositoryIssueList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "number"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepositoryIssueGet,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "number"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepositoryIssueGet,
},
Columns: commonColumns(gitHubIssueColumns()),
}
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func tableGitHubIssueComment() *plugin.Table {
Name: "github_issue_comment",
Description: "GitHub Issue Comments are the responses/comments on GitHub Issues.",
List: &plugin.ListConfig{
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "number"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubRepositoryIssueCommentList,
KeyColumns: plugin.AllColumns([]string{"repository_full_name", "number"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubRepositoryIssueCommentList,
},
Columns: commonColumns(sharedCommentsColumns()),
}
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_license.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func tableGitHubLicense() *plugin.Table {
Hydrate: tableGitHubLicenseList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.SingleColumn("key"),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubLicenseGetData,
KeyColumns: plugin.SingleColumn("key"),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubLicenseGetData,
},
Columns: commonColumns([]*plugin.Column{
{Name: "spdx_id", Description: "The Software Package Data Exchange (SPDX) id of the license.", Type: proto.ColumnType_STRING, Transform: transform.FromValue(), Hydrate: licenseHydrateSpdxId},
Expand Down
4 changes: 2 additions & 2 deletions github/table_github_my_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func tableGitHubMyRepository() *plugin.Table {
Name: "github_my_repository",
Description: "GitHub Repositories that you are associated with. GitHub Repositories contain all of your project's files and each file's revision history.",
List: &plugin.ListConfig{
Hydrate: tableGitHubMyRepositoryList,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubMyRepositoryList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
},
Columns: commonColumns(sharedRepositoryColumns()),
}
Expand Down
4 changes: 2 additions & 2 deletions github/table_github_my_star.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ func tableGitHubMyStar() *plugin.Table {
Name: "github_my_star",
Description: "GitHub stars owned by you. GitHub stars are repositories.",
List: &plugin.ListConfig{
Hydrate: tableGitHubMyStarredRepositoryList,
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubMyStarredRepositoryList,
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
},
Columns: commonColumns([]*plugin.Column{
{Name: "repository_full_name", Type: proto.ColumnType_STRING, Description: "The full name of the repository, including the owner and repo name.", Transform: transform.FromValue(), Hydrate: starHydrateNameWithOwner},
Expand Down
6 changes: 3 additions & 3 deletions github/table_github_my_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func tableGitHubMyTeam() *plugin.Table {
Hydrate: tableGitHubMyTeamList,
},
Get: &plugin.GetConfig{
KeyColumns: plugin.AllColumns([]string{"organization", "slug"}),
ShouldIgnoreError: isNotFoundError([]string{"404"}),
Hydrate: tableGitHubTeamGet,
KeyColumns: plugin.AllColumns([]string{"organization", "slug"}),
IgnoreConfig: &plugin.IgnoreConfig{ShouldIgnoreErrorFunc: isNotFoundError([]string{"404"})},
Hydrate: tableGitHubTeamGet,
},
Columns: commonColumns(gitHubTeamColumns()),
}
Expand Down
Loading
Loading