Skip to content

Commit

Permalink
chore(ci): auto-approve and merge upgrade PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed May 22, 2022
1 parent 30c3657 commit f7abc08
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes

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

21 changes: 21 additions & 0 deletions .github/workflows/auto-approve.yml

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

1 change: 1 addition & 0 deletions .github/workflows/upgrade-main.yml

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

1 change: 1 addition & 0 deletions .gitignore

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

1 change: 1 addition & 0 deletions .projen/files.json

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

12 changes: 10 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ const project = new awscdk.AwsCdkConstructLibrary({
],
sampleCode: false,
compat: true,
autoApproveOptions: {
allowedUsernames: ['kichik'],
},
depsUpgradeOptions: {
workflowOptions: {
labels: ['auto-approve'],
},
},
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: {
Expand All @@ -79,8 +87,8 @@ const project = new awscdk.AwsCdkConstructLibrary({
});

// disable automatic releases, but keep workflow that can be triggered manually
const releaseWorkflowFile = project.tryFindObjectFile('.github/workflows/release.yml');
releaseWorkflowFile.addDeletionOverride('on.push');
const releaseWorkflow = project.github.tryFindWorkflow('release');
releaseWorkflow.file.addDeletionOverride('on.push');

// bundle lambdas so user doesn't have to install dependencies like octokit locally
const lambdas = fs.readdirSync('src/lambdas');
Expand Down

0 comments on commit f7abc08

Please sign in to comment.