Skip to content

Commit 2d9596f

Browse files
MichaelWalker-gitscottschreckengaustgithub-actions
authored
feat(docs): better handling of dependabot updates (#307)
* feat(docs): better handling of dependabot updates * fix: dependabot via projen Signed-off-by: Scott Schreckengaust <[email protected]> * chore: self mutation Signed-off-by: github-actions <[email protected]> --------- Signed-off-by: Scott Schreckengaust <[email protected]> Signed-off-by: github-actions <[email protected]> Co-authored-by: Scott Schreckengaust <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent c46c5d0 commit 2d9596f

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

.gitattributes

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/dependabot.yml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitignore

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projen/files.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313
import { ProjenStruct, Struct } from '@mrgrain/jsii-struct-builder';
1414
import { JsonPatch, awscdk } from 'projen';
15+
import { DependabotScheduleInterval, VersioningStrategy } from 'projen/lib/github';
1516
import { JobPermission } from 'projen/lib/github/workflows-model';
1617
import { NpmAccess } from 'projen/lib/javascript';
1718
import {
@@ -290,4 +291,15 @@ if (postCompile) {
290291
postCompile.exec('npx typedoc --plugin typedoc-plugin-markdown --out apidocs --readme none --categoryOrder "Namespaces,Classes,Interfaces,*" --disableSources ./src/index.ts');
291292
}
292293

294+
project.github?.addDependabot({
295+
versioningStrategy: VersioningStrategy.LOCKFILE_ONLY,
296+
ignoreProjen: false,
297+
scheduleInterval: DependabotScheduleInterval.WEEKLY,
298+
groups: {
299+
['dev-dependencies']: {
300+
patterns: ['*'],
301+
},
302+
},
303+
});
304+
293305
project.synth();

0 commit comments

Comments
 (0)