Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AtzeDeVries committed Feb 3, 2023
1 parent 90870be commit fcdc86f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/external_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ var ExternalNameConfigs = map[string]config.ExternalName{
// Imported by using the following format: {{ repository }}:{{ pattern }}
// We cannot use the external_name = pattern here since pattern can contain non alpha numberic characters
"github_branch_protection": config.IdentifierFromProvider,
// Imported by using the following format: github_repository_file.gitignore {{repository}}/{{file}}:{{branch}}
// We cannot use file as external name since filenames are not DNSSpec and metadata.name requires this.
"github_repository_file": config.IdentifierFromProvider,
// Imported by using the following format: github_repository_file.gitignore {{repository}}/{{file}}:{{branch}}
// We cannot use file as external name since filenames are not DNSSpec and metadata.name requires this.
"github_repository_file": config.IdentifierFromProvider,
// Imported by using the following format: {{ id / slug }}
// The id in the state needs to use the numberic id of the team. Cannot make external_name nice
"github_team": config.IdentifierFromProvider,
Expand Down
2 changes: 1 addition & 1 deletion config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func GetProvider() *ujconfig.Provider {
// add custom config functions
repository.Configure,
branch.Configure,
repositoryfile.Configure,
repositoryfile.Configure,
team.Configure,
teamrepository.Configure,
defaultbranch.Configure,
Expand Down
6 changes: 3 additions & 3 deletions config/repositoryfile/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ func Configure(p *config.Provider) {
// this resource, which would be "github"
r.Kind = "RepositoryFile"
r.ShortGroup = "repo"
r.References["repository"] = config.Reference{

r.References["repository"] = config.Reference{
Type: "Repository",
}
r.References["branch"] = config.Reference{
r.References["branch"] = config.Reference{
Type: "Branch",
}
})
Expand Down

0 comments on commit fcdc86f

Please sign in to comment.