Author: Garrett W. (garrettw)
Committer: Derick Rethans (derickr)
Date: 2025-07-31T17:45:27+01:00

Commit: 
https://github.com/php/web-php/commit/9aff5b6e7862db9ba1772f4e18753212c03356b4
Raw diff: 
https://github.com/php/web-php/commit/9aff5b6e7862db9ba1772f4e18753212c03356b4.diff

created devcontainer config, updated dependabot

Changed paths:
  A  .devcontainer/devcontainer.json
  M  .github/dependabot.yaml


Diff:

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..70337886c2
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,38 @@
+// For format details, see https://aka.ms/devcontainer.json. For config 
options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/php
+{
+    "name": "PHP",
+    // Or use a Dockerfile or Docker Compose file. More info: 
https://containers.dev/guide/dockerfile
+    "image": "mcr.microsoft.com/devcontainers/php:1-8.2-bullseye",
+
+    // Features to add to the dev container. More info: 
https://containers.dev/features.
+    "features": {
+        "ghcr.io/devcontainers/features/github-cli:1": {},
+        "ghcr.io/devcontainers/features/node:1": {}
+    },
+
+    // Configure tool-specific properties.
+    "customizations": {
+        // Configure properties specific to VS Code.
+        "vscode": {
+            "extensions": [
+                "ikappas.composer",
+                "editorconfig.editorconfig",
+                "junstyle.php-cs-fixer",
+                "ms-vscode.makefile-tools",
+                "recca0120.vscode-phpunit"
+            ]
+        }
+    },
+
+    // Use 'forwardPorts' to make a list of ports inside the container 
available locally.
+    "forwardPorts": [
+        8080
+    ],
+
+    // Use 'postCreateCommand' to run commands after the container is created.
+    "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf 
/var/www/html && sudo ln -s \"$(pwd)\" /var/www/html; test -f composer.json && 
composer install"
+
+    // Uncomment to connect as root instead. More info: 
https://aka.ms/dev-containers-non-root.
+    // "remoteUser": "root"
+}
diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index 1a9f9d8f13..fb8b26f5f1 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -3,7 +3,8 @@
 version: 2
 
 updates:
-  - allow:
+  - package-ecosystem: "composer"
+    allow:
       - dependency-type: "development"
     commit-message:
       include: "scope"
@@ -12,18 +13,28 @@ updates:
     labels:
       - "dependency"
     open-pull-requests-limit: 10
-    package-ecosystem: "composer"
     schedule:
       interval: "weekly"
     versioning-strategy: "increase"
 
-  - commit-message:
+  - package-ecosystem: "github-actions"
+    commit-message:
       include: "scope"
       prefix: "github-actions"
     directory: "/"
     labels:
       - "dependency"
     open-pull-requests-limit: 10
-    package-ecosystem: "github-actions"
+    schedule:
+      interval: "weekly"
+  
+  - package-ecosystem: "devcontainers"
+    commit-message:
+      include: "scope"
+      prefix: "devcontainers"
+    directory: "/"
+    labels:
+      - "dependency"
+    open-pull-requests-limit: 10
     schedule:
       interval: "weekly"

Reply via email to