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
4 changes: 3 additions & 1 deletion github/components/publicRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export interface PublicRepoArgs {
topics?: Input<Input<string>[]>;
/** Passed through to the repository resource, for adopting one that already exists. */
repoOptions?: CustomResourceOptions;
/** Passed through to the `main` ruleset resource, for adopting one that already exists. */
rulesetOptions?: CustomResourceOptions;
/** Whether Dependabot raises alerts for the repository. Defaults to enabled. */
vulnerabilityAlerts?: Input<boolean>;
}
Expand Down Expand Up @@ -97,7 +99,7 @@ export class PublicRepo extends Repo {
requiredStatusChecks: statusChecks,
},
},
{ parent: this },
{ parent: this, ...args.rulesetOptions },
);

this.mainRuleset = mainRuleset;
Expand Down
18 changes: 18 additions & 0 deletions github/repos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,24 @@ export const pkgs = new PublicRepo('pkgs', {
vulnerabilityAlerts: false,
});

// Keep the Pulumi resource name as "scm"; repoName holds the current GitHub name until the rename lands.
export const scm = new PublicRepo('scm', {
repoName: 'github',
description: 'unmango source control infrastructure',
topics: ['pulumi', 'iac', 'github'],
githubChecks: ['pulumi'],
// This repository already exists. ignoreChanges keeps the import from failing
// on settings that differ from the PublicRepo defaults.
repoOptions: {
import: 'github',
ignoreChanges: ['description', 'topics', 'squashMergeCommitTitle'],
},
rulesetOptions: {
import: 'github:1269371',
ignoreChanges: ['rules'],
},
});

export const slip = new PublicRepo('slip', {
description: 'Capture a thought into a zettel with as little ceremony as possible',
topics: ['zettelkasten', 'notes', 'knowledge-management', 'markdown', 'go'],
Expand Down
Loading