Skip to content

Commit

Permalink
fix: fix diff issue on deprecated gh setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelopsio committed Mar 7, 2024
1 parent 5b3a51c commit 333005d
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 262 deletions.
2 changes: 1 addition & 1 deletion 02-repositories/cpln.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pulumi-cpln
description: Pulumi provider for Control Plane (cpln)
type: provider
template: pulumi-tf-provider-boilerplate
hasDownloads: true
import: true
69 changes: 37 additions & 32 deletions src/configTypes.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
import * as RT from "runtypes";
import {Static} from "runtypes/lib/runtype";
import * as RT from 'runtypes';
import { Static } from 'runtypes/lib/runtype';

export const Team = RT.Record({
name: RT.String,
description: RT.String,
})
name: RT.String,
description: RT.String,
});

export const Member = RT.Record({
username: RT.String,
role: RT.String.optional(),
membershipImport: RT.String.optional(),
teamMembershipImport: RT.String.optional(),
pull: RT.Array(RT.String).optional(),
triage: RT.Array(RT.String).optional(),
push: RT.Array(RT.String).optional(),
maintain: RT.Array(RT.String).optional(),
admin: RT.Array(RT.String).optional(),
})
username: RT.String,
role: RT.String.optional(),
membershipImport: RT.String.optional(),
teamMembershipImport: RT.String.optional(),
pull: RT.Array(RT.String).optional(),
triage: RT.Array(RT.String).optional(),
push: RT.Array(RT.String).optional(),
maintain: RT.Array(RT.String).optional(),
admin: RT.Array(RT.String).optional(),
});

export const Labels = RT.Record({
name: RT.String,
color: RT.String,
description: RT.String.optional(),
})
name: RT.String,
color: RT.String,
description: RT.String.optional(),
});

export const Repository = RT.Record({
name: RT.String,
description: RT.String,
type: RT.Union(RT.Literal('administrative'), RT.Literal('provider'), RT.Literal('information')),
teams: RT.Array(RT.String).optional(),
topics: RT.Array(RT.String).optional(),
labels: RT.Array(Labels).optional(),
import: RT.Boolean.optional(),
template: RT.String.optional(),
removable: RT.Boolean.optional(),
})
name: RT.String,
description: RT.String,
type: RT.Union(
RT.Literal('administrative'),
RT.Literal('provider'),
RT.Literal('information'),
),
teams: RT.Array(RT.String).optional(),
topics: RT.Array(RT.String).optional(),
labels: RT.Array(Labels).optional(),
hasDownloads: RT.Boolean.optional(),
import: RT.Boolean.optional(),
template: RT.String.optional(),
removable: RT.Boolean.optional(),
});

export type Team = Static<typeof Team>
export type Member = Static<typeof Member>
export type Repository = Static<typeof Repository>
export type Team = Static<typeof Team>;
export type Member = Static<typeof Member>;
export type Repository = Static<typeof Repository>;
Loading

0 comments on commit 333005d

Please sign in to comment.