From 97097a43879dc20d4b7433da39446e124f2732c5 Mon Sep 17 00:00:00 2001 From: "jetbrains-junie[bot]" <201638009+jetbrains-junie[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 03:59:24 +0000 Subject: [PATCH 1/3] feat(junie): added .junie workflow --- .github/workflows/junie.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/junie.yml diff --git a/.github/workflows/junie.yml b/.github/workflows/junie.yml new file mode 100644 index 0000000..0cd2beb --- /dev/null +++ b/.github/workflows/junie.yml @@ -0,0 +1,19 @@ +name: Junie +run-name: "Junie run ${{ inputs.run_id }}" +permissions: + contents: write +"on": + workflow_dispatch: + inputs: + run_id: + description: id of workflow process + required: true + workflow_params: + description: stringified params + required: true +jobs: + call-workflow-passing-data: + uses: jetbrains-junie/junie-workflows/.github/workflows/ej-issue.yml@main + with: + workflow_params: "${{ inputs.workflow_params }}" + junie_ide: PhpStorm From 57f69d65dd420c6660941de79512e7b995d0371e Mon Sep 17 00:00:00 2001 From: "jetbrains-junie[bot]" <201638009+jetbrains-junie[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 03:59:25 +0000 Subject: [PATCH 2/3] feat(junie): added .devcontainer.json --- .devcontainer/devcontainer.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d0b334d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "name": "PHP", + "image": "mcr.microsoft.com/devcontainers/php", + "postCreateCommand": ".devcontainer/install-dependencies.sh" +} From db771173bfcf630ece3d8d7158d3ba4520d2c53d Mon Sep 17 00:00:00 2001 From: "jetbrains-junie[bot]" <201638009+jetbrains-junie[bot]@users.noreply.github.com> Date: Thu, 21 Aug 2025 03:59:26 +0000 Subject: [PATCH 3/3] feat(junie): added install-dependencies.sh script --- .devcontainer/install-dependencies.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .devcontainer/install-dependencies.sh diff --git a/.devcontainer/install-dependencies.sh b/.devcontainer/install-dependencies.sh new file mode 100644 index 0000000..ce7a394 --- /dev/null +++ b/.devcontainer/install-dependencies.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [ -f "composer.json" ]; then + echo "Found composer.json in project root. Installing dependencies..." + composer install --no-interaction --ignore-platform-reqs + echo "✅ PHP dependencies installed successfully in project root." +else + echo "⚠️ No composer.json in project root. Searching for composer.json files in subdirectories..." + + find . -type f -name "composer.json" | while read composer_file; do + dir=$(dirname "$composer_file") + echo "Installing dependencies in $dir..." + (cd "$dir" && composer install --no-interaction --ignore-platform-reqs) + if [ $? -eq 0 ]; then + echo "✅ Dependencies installed successfully in $dir." + else + echo "❌ Failed to install dependencies in $dir." + fi + done +fi \ No newline at end of file