Skip to content

Commit ce0e1bf

Browse files
committed
Fix linter issues
Now we know that it exists :) Also fix some grammar/spelling
1 parent 9d4073f commit ce0e1bf

File tree

4 files changed

+37
-37
lines changed

4 files changed

+37
-37
lines changed

pkg/config/conf.gen.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ var (
4545
)
4646
omitArchivedRepositories = field.BoolField(
4747
"omit-archived-repositories",
48-
field.WithDisplayName("Omit syncying archived repositories"),
49-
field.WithDescription("Whether to skip sync archived repositories or not"),
48+
field.WithDisplayName("Omit syncing archived repositories"),
49+
field.WithDescription("Whether to skip syncing archived repositories or not"),
5050
)
5151
fieldRelationships = []field.SchemaFieldRelationship{
5252
field.FieldsMutuallyExclusive(

pkg/connector/connector.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ var (
8989
)
9090

9191
type GitHub struct {
92-
orgs []string
93-
client *github.Client
94-
appClient *github.Client
95-
customClient *customclient.Client
96-
instanceURL string
97-
graphqlClient *githubv4.Client
98-
hasSAMLEnabled *bool
99-
orgCache *orgNameCache
100-
syncSecrets bool
92+
orgs []string
93+
client *github.Client
94+
appClient *github.Client
95+
customClient *customclient.Client
96+
instanceURL string
97+
graphqlClient *githubv4.Client
98+
hasSAMLEnabled *bool
99+
orgCache *orgNameCache
100+
syncSecrets bool
101101
omitArchivedRepositories bool
102-
enterprises []string
102+
enterprises []string
103103
}
104104

105105
func (gh *GitHub) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer {
@@ -307,15 +307,15 @@ func New(ctx context.Context, ghc *cfg.Github, appKey string) (*GitHub, error) {
307307
}
308308

309309
gh := &GitHub{
310-
client: ghClient,
311-
appClient: appClient,
312-
customClient: customclient.New(ghClient),
313-
instanceURL: ghc.InstanceUrl,
314-
orgs: ghc.Orgs,
315-
enterprises: ghc.Enterprises,
316-
graphqlClient: graphqlClient,
317-
orgCache: newOrgNameCache(ghClient),
318-
syncSecrets: ghc.SyncSecrets,
310+
client: ghClient,
311+
appClient: appClient,
312+
customClient: customclient.New(ghClient),
313+
instanceURL: ghc.InstanceUrl,
314+
orgs: ghc.Orgs,
315+
enterprises: ghc.Enterprises,
316+
graphqlClient: graphqlClient,
317+
orgCache: newOrgNameCache(ghClient),
318+
syncSecrets: ghc.SyncSecrets,
319319
omitArchivedRepositories: ghc.OmitArchivedRepositories,
320320
}
321321
return gh, nil

pkg/connector/repository.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func repositoryResource(ctx context.Context, repo *github.Repository, parentReso
5757
}
5858

5959
type repositoryResourceType struct {
60-
resourceType *v2.ResourceType
61-
client *github.Client
62-
orgCache *orgNameCache
60+
resourceType *v2.ResourceType
61+
client *github.Client
62+
orgCache *orgNameCache
6363
omitArchivedRepositories bool
6464
}
6565

@@ -415,9 +415,9 @@ func (o *repositoryResourceType) Revoke(ctx context.Context, grant *v2.Grant) (a
415415

416416
func repositoryBuilder(client *github.Client, orgCache *orgNameCache, omitArchivedRepositories bool) *repositoryResourceType {
417417
return &repositoryResourceType{
418-
resourceType: resourceTypeRepository,
419-
client: client,
420-
orgCache: orgCache,
418+
resourceType: resourceTypeRepository,
419+
client: client,
420+
orgCache: orgCache,
421421
omitArchivedRepositories: omitArchivedRepositories,
422422
}
423423
}

0 commit comments

Comments
 (0)