Skip to content

Commit 8081cc3

Browse files
authored
Configure dependabot to update package.json and group dependency updates (#1908)
* Change dependabot versioning strategy to increase-if-necessary Bump the versioning strategy to increase-if-necessary to allow for minor and patch updates to be automatically applied by Dependabot inside the package.json file. Our semantic version constraints are still respected with increase-if-necessary, but allows us to keep pace with libraries. See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#versioning-strategy for more information. This does introduce the possibility of breaking changes, as increase-if-necessary will update to a major version. However since all PRs require a review, we can catch these breaking changes before they become a problem. We can monitor this and adjust the strategy if necessary. Previously the versioning strategy was set to lockfile-only which only allowed for the exact version specified in the package-lock.json file to be updated. This was introduced in #721 with the intention of monitoring what was updated and then deciding if we would change the strategy. * Use dependabot groups to group development dependencies This adds groups to the dependabot configuration file for development dependencies. There are many reasons to group dependencies, but the reason focused on here is optimizing for PR review. Instead of a single PR per dependency, a single PR with all the updates for a group is created. This is especially useful for development dependencies, which are often updated frequently and in small increments. This can lead to a large number of PRs being created. By grouping these dependencies, the rebase-review-merge-repeat cycle is reduced. This commit introduces only groups for development dependacies in order to keep things simple. Likely we won't group production, but we can further refine the groups as needed. * changelog * format
1 parent 090b674 commit 8081cc3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: INTERNAL
2+
body: Configure dependabot to update package.json and group dependency updates
3+
time: 2024-12-09T10:09:36.876848-05:00
4+
custom:
5+
Issue: "1908"
6+
Repository: vscode-terraform

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
version: 2
22
updates:
33
- package-ecosystem: 'npm'
4-
versioning-strategy: lockfile-only
4+
versioning-strategy: increase-if-necessary
55
directory: '/'
66
schedule:
77
interval: 'daily'
88
labels: ['dependencies']
9+
groups:
10+
development-dependencies:
11+
dependency-type: 'development'
912
ignore:
1013
- dependency-name: '@types/*'
1114
update-types: ['version-update:semver-minor', 'version-update:semver-patch']

0 commit comments

Comments
 (0)