Skip to content

Commit 43ffcce

Browse files
Copilotnpalm
andauthored
chore: Configure Dependabot to ignore Node.js major version updates (#4821)
- [x] Explore repository structure and identify Node.js version usage - [x] Identify Dependabot configuration location - [x] Identify files using Node.js version (Lambda runtime is nodejs22.x) - [x] Update Dependabot configuration to ignore Node.js major version updates - [x] Add ignore rules for Docker images using Node.js (only in docker ecosystems) - [x] Remove incorrect ignore rule from github-actions ecosystem - [x] Add ignore rule for @types/node in npm ecosystem - [x] Update comments to reference Lambda runtime as configured via Terraform - [x] Test the configuration (YAML syntax validated) ## Summary Configured Dependabot to ignore major version updates for Node.js to keep aligned with Lambda runtime as configured via Terraform. ### Changes: 1. Added ignore rule for `@types/node` in npm ecosystem to prevent TypeScript type definitions from updating to incompatible major versions 2. Added ignore rule for `node` Docker image in `.ci/Dockerfile` updates 3. Added ignore rule for `mcr.microsoft.com/vscode/devcontainers/typescript-node` in `.devcontainer/Dockerfile` updates All ignore rules are configured to block `version-update:semver-major` updates only, allowing minor and patch updates to continue. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > Can you make a pr to avoid deprndabot is updating the major node version since we would like to keep it the same as the runtime used for lamda </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click [here](https://survey3.medallia.com/?EAHeSx-AP01bZqG0Ld9QLQ) to start the survey. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: npalm <[email protected]> Co-authored-by: Niek Palm <[email protected]>
1 parent be9572a commit 43ffcce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ updates:
5151
commit-message:
5252
prefix: "fix(lambda)"
5353
prefix-development: "chore(lambda)"
54+
# Ignore major version updates for Node.js related packages to keep aligned with Lambda runtime as configured via Terraform
55+
ignore:
56+
- dependency-name: "@types/node"
57+
update-types: ["version-update:semver-major"]
5458

5559
- package-ecosystem: "docker"
5660
directory: "/.ci/Dockerfile"
@@ -61,6 +65,10 @@ updates:
6165
- "docker"
6266
commit-message:
6367
prefix: "chore(docker)"
68+
# Ignore major version updates for Node.js Docker images to keep aligned with Lambda runtime as configured via Terraform
69+
ignore:
70+
- dependency-name: "node"
71+
update-types: ["version-update:semver-major"]
6472

6573
- package-ecosystem: "docker"
6674
directory: "/.devcontainer/Dockerfile"
@@ -71,6 +79,10 @@ updates:
7179
- "docker"
7280
commit-message:
7381
prefix: "chore(devcontainer)"
82+
# Ignore major version updates for Node.js Docker images to keep aligned with Lambda runtime as configured via Terraform
83+
ignore:
84+
- dependency-name: "mcr.microsoft.com/vscode/devcontainers/typescript-node"
85+
update-types: ["version-update:semver-major"]
7486

7587
- package-ecosystem: "pip"
7688
directory: "/.github/workflows/mkdocs"

0 commit comments

Comments
 (0)