Skip to content

Commit 6112722

Browse files
author
Illia Obukhau
committed
feat(scripts): add intro in dependabot config
1 parent fa38508 commit 6112722

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This file was generated by `generate-dependabot-config.mjs` script.
2+
# To update config, run `pnpm update-dependabot-config` in automation/scripts package.
3+
# WARNING: All changes made to this file will be overwritten.
14
version: 2
25
updates:
36
- package-ecosystem: github-actions

automation/scripts/generate-dependabot-config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ function main() {
4444
]
4545
};
4646

47-
writeFileSync(path.resolve(root, ".github/dependabot.yml"), yaml.stringify(dependabotConfig), {
47+
const intro = [
48+
"# This file was generated by `generate-dependabot-config.mjs` script.",
49+
"# To update config, run `pnpm update-dependabot-config` in automation/scripts package.",
50+
"# WARNING: All changes made to this file will be overwritten."
51+
];
52+
const content = [...intro, yaml.stringify(dependabotConfig)].join("\n");
53+
54+
writeFileSync(path.resolve(root, ".github/dependabot.yml"), content, {
4855
encoding: "utf-8"
4956
});
5057
}

0 commit comments

Comments
 (0)