Skip to content

Commit

Permalink
chore: reenable required CLA checks (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Jul 2, 2024
1 parent 60bef17 commit 6972ba1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export class RepositorySetup extends Construct {

const {
protectMain = false,
// @TODO: uncomment the below line if we want to require CLA checks again (and remove the line below it)
// protectMainChecks = ["build", "license/cla"],
protectMainChecks = ["build"],
protectMainChecks = ["build", "license/cla"],
provider,
repository,
team,
Expand Down
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ class TerraformCdkProviderStack extends TerraformStack {
{
team: githubTeam,
webhookUrl: slackWebhook.stringValue,
protectMain: true,
protectMainChecks: ["build", "package-js", "license/cla"],
provider: githubProvider,
},
);
Expand Down Expand Up @@ -271,9 +273,7 @@ class CustomConstructsStack extends TerraformStack {
const secrets = new PublishingSecretSet(this, "secret-set");

constructRepos.forEach(({ name: repoName, languages, topics }) => {
// @TODO: uncomment the below line if we want to require CLA checks again (and remove the line below it)
// const protectMainChecks = ["build", "license/cla"].concat(
const protectMainChecks = ["build"].concat(
const protectMainChecks = ["build", "license/cla"].concat(
languages.map((language) => {
return `package-${
language === "typescript"
Expand Down

0 comments on commit 6972ba1

Please sign in to comment.