Skip to content

Commit

Permalink
ci(github): update secrets and PR lint types
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysteenman committed Aug 19, 2024
1 parent 1071c6f commit ef3c3a3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .github/workflows/pull-request-lint.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,22 @@ const project = new awscdk.AwsCdkTypeScriptApp({
authorOrganization: true,
name: 'aws-cdk-starterkit',
description: 'Create and deploy an AWS CDK app on your AWS account in less than 5 minutes using GitHub actions!',
cdkVersion: '2.150.0', // Find the latest CDK version here: https://www.npmjs.com/package/aws-cdk-lib
cdkVersion: '2.152.0', // Find the latest CDK version here: https://www.npmjs.com/package/aws-cdk-lib
cdkVersionPinning: true,
defaultReleaseBranch: 'main',
packageManager: NodePackageManager.NPM,
minNodeVersion: nodeVersion,
projenVersion: '0.84.8', // Find the latest projen version here: https://www.npmjs.com/package/projen
projenVersion: '0.85.2', // Find the latest projen version here: https://www.npmjs.com/package/projen
projenrcTs: true,
release: true,
deps: ['aws-cdk-github-oidc', 'cloudstructs'] /* Runtime dependencies of this module. */,
autoApproveOptions: {
allowedUsernames: ['dependabot', 'dependabot[bot]', 'github-bot', 'github-actions[bot]'],
/**
* The name of the secret that has the GitHub PAT for auto-approving PRs.
* Generate a new PAT (https://github.com/settings/tokens/new) and add it to your repo's secrets
*/
secret: 'PROJEN_GITHUB_TOKEN',
},
dependabot: true,
dependabotOptions: {
Expand All @@ -54,6 +59,13 @@ const project = new awscdk.AwsCdkTypeScriptApp({
},
ignore: [{ dependencyName: 'aws-cdk-lib' }, { dependencyName: 'aws-cdk' }],
},
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: {
types: ['feat', 'fix', 'build', 'chore', 'ci', 'docs', 'style', 'refactor'],
},
},
},
pullRequestTemplateContents: [
'## Pull request checklist\n',
'Please check if your PR fulfills the following requirements:\n',
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [![AWS CDK Starterkit header](https://raw.githubusercontent.com/dannysteenman/aws-cdk-starterkit/main/icons/github-header-image.png)](https://towardsthecloud.com)
# [![AWS CDK Starterkit header](./icons/github-header-image.png)](https://towardsthecloud.com)

# AWS CDK Starterkit

Expand All @@ -13,7 +13,7 @@
Welcome to the starting line of your next AWS CDK project. This repository is crafted to supercharge your project's setup with AWS CDK TypeScript, projen, and GitHub actions, ensuring a smooth and efficient deployment to your AWS account.

> [!TIP]
> [Unlock AWS CDK's Full Potential - Partner with Us!](#unlock-aws-cdks-full-potential---partner-with-us)
> [Unlock the full potention of your infrastructure - Partner with Us!](#unlock-the-full-potention-of-your-infrastructure---partner-with-us)
## Features

Expand Down Expand Up @@ -143,14 +143,14 @@ When you create a new feature branch and push it to the repository, the GitHub A

Additionally, the workflow includes a separate task to destroy the CDK stacks for the feature branch when the branch is deleted or the pull request is closed, ensuring that the resources are cleaned up after the testing is complete.

## Unlock AWS CDK's Full Potential - Partner with Us!
## Unlock the full potention of your infrastructure - Partner with us!

> [!TIP]
> In the ever-evolving cloud landscape, your infrastructure should be your greatest asset, not your biggest headache. At [Towards the Cloud](https://towardsthecloud.com), we transform complex AWS challenges into powerful, scalable solutions.
> Supercharge Your AWS Infrastructure with [Towards the Cloud](https://towardsthecloud.com). We ship well-architected, resilient, and cost-optimized AWS solutions designed to scale using Infrastructure as Code (IaC), tailoring cloud-native systems for businesses of all sizes.
>
> Our Approach:
>
> - **Tailored CDK Solutions**: Custom-built for your unique business needs
> - **Tailored AWS Solutions**: Custom-built for your unique business needs
> - **Future-Proof Architecture**: Scalable designs that grow with you
> - **Empowerment Through Ownership**: Your vision, your infrastructure, our expertise
>
Expand Down

0 comments on commit ef3c3a3

Please sign in to comment.