Skip to content

Commit

Permalink
chore(config): Add build workflow, mergify, and PR template
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysteenman committed Jan 14, 2025
1 parent ccfdac9 commit 58a4daf
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitattributes

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

1 change: 1 addition & 0 deletions .github/pull_request_template.md

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

79 changes: 79 additions & 0 deletions .github/workflows/build.yml

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

3 changes: 3 additions & 0 deletions .gitignore

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

34 changes: 34 additions & 0 deletions .mergify.yml

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

2 changes: 2 additions & 0 deletions .npmignore

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

3 changes: 3 additions & 0 deletions .projen/files.json

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

17 changes: 15 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ const project = new awscdk.AwsCdkTypeScriptApp({
minNodeVersion: nodeVersion,
projenVersion: '0.91.6', // Find the latest projen version here: https://www.npmjs.com/package/projen
projenrcTs: true,
buildWorkflow: false,
release: true,
deps: ['aws-cdk-github-oidc', 'cloudstructs'] /* Runtime dependencies of this module. */,
pullRequestTemplate: false,
autoApproveOptions: {
allowedUsernames: ['dependabot', 'dependabot[bot]', 'github-bot', 'github-actions[bot]'],
/**
Expand All @@ -61,6 +59,21 @@ const project = new awscdk.AwsCdkTypeScriptApp({
ignore: [{ dependencyName: 'aws-cdk-lib' }, { dependencyName: 'aws-cdk' }],
},
githubOptions: {
mergifyOptions: {
rules: [
{
name: 'Automatic merge for Dependabot pull requests',
conditions: ['author=dependabot[bot]', 'check-success=build', 'check-success=test'],
actions: {
queue: {
name: 'dependency-updates',
method: 'squash',
commit_message_template: '{{title}} (#{{number}})',
},
},
},
],
},
pullRequestLintOptions: {
semanticTitleOptions: {
types: ['feat', 'fix', 'build', 'chore', 'ci', 'docs', 'style', 'refactor'],
Expand Down

0 comments on commit 58a4daf

Please sign in to comment.