From 6f8f036b5d226d74e7a72eb073d7e58f0a1b8c19 Mon Sep 17 00:00:00 2001 From: AtlantiXpyce Date: Sat, 28 Feb 2026 12:00:28 +0100 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20A=C3=B1adir=20linter=20para=20gdscr?= =?UTF-8?q?ipt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gdlintrc | 2 ++ .github/workflows/linter.yml | 26 ++++++++++++++++++++++++++ dialogos/estiloDrapy.tres | 2 +- dialogos/hoguera2.dtl | 4 +++- project.godot | 5 +++++ 5 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .gdlintrc create mode 100644 .github/workflows/linter.yml diff --git a/.gdlintrc b/.gdlintrc new file mode 100644 index 0000000..b2d74e2 --- /dev/null +++ b/.gdlintrc @@ -0,0 +1,2 @@ +max-line-length = 120 +indent-size = 4 \ No newline at end of file diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..b7cfaec --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,26 @@ +name: GDScript Linter + +on: + pull_request: + branches: [ main, develop ] + push: + branches: [ main, develop ] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout código + uses: actions/checkout@v4 + + - name: Instalar Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Instalar gdtoolkit + run: pip install gdtoolkit + + - name: Ejecutar gdlint + run: gdlint . \ No newline at end of file diff --git a/dialogos/estiloDrapy.tres b/dialogos/estiloDrapy.tres index 637d7d2..45437d8 100644 --- a/dialogos/estiloDrapy.tres +++ b/dialogos/estiloDrapy.tres @@ -55,4 +55,4 @@ base_overrides = { "global_font_size": "16.0" } layers = Array[ExtResource("1_j61f0")]([SubResource("Resource_pwsi6"), SubResource("Resource_fn38d"), SubResource("Resource_gkqe6"), SubResource("Resource_02wlt"), SubResource("Resource_ouurs"), SubResource("Resource_yfcxw"), SubResource("Resource_sijlv")]) -metadata/_latest_layer = -1 +metadata/_latest_layer = 0 diff --git a/dialogos/hoguera2.dtl b/dialogos/hoguera2.dtl index 7d17d0b..ae00610 100644 --- a/dialogos/hoguera2.dtl +++ b/dialogos/hoguera2.dtl @@ -1,6 +1,8 @@ +[music path="res://addons/dialogic/Example Assets/sound-effects/typing1.wav" fade="10.0" volume="0.0"] +[sound path="res://addons/dialogic/Example Assets/sound-effects/typing1.wav" volume="1.0"] Klep: Anda, Zuri, por fin vuelves con las cerillas. Vermillion: Eso, y con quien vienes ahora Zuri? Scanf: Pues no se muy bien quien es, pero dice que viene para asegurarse de que hacemos las cosas bien por aquí. Vermillion: Bueno si, menos cháchara y más hacer la hoguera. -Tú: Un momento, vais a dejar así la hoguera? Podrías quemar el bosque entero si no sois cuidadosos. +Tú: Un momento, vais a dejar así la hoguera? Podrías quemar el bosque entero si no sois cuidadosos. Tú: Deberías de colocar unas piedras alrededor de la hoguera para que el fuego no se propague. diff --git a/project.godot b/project.godot index 78d8b9b..9ca313e 100644 --- a/project.godot +++ b/project.godot @@ -63,6 +63,11 @@ choices/reveal_by_input=false save/autosave_delay=60.0 save/encryption_on_exports_only=true text/autopauses={} +event_default_overrides={ +"Sound": { +"loop": false +} +} [editor_plugins] From 1f1d2bb55aee7218d1020c416a5d15a72fec6f83 Mon Sep 17 00:00:00 2001 From: AtlantiXpyce Date: Sat, 28 Feb 2026 12:21:54 +0100 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20A=C3=B1adir=20action=20que=20evalua?= =?UTF-8?q?=20licencias=20de=20los=20addons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/license-check.yml | 52 +++++++++++++++++++++++++++++ LICENSE => addons/dialogic/LICENSE | 0 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/license-check.yml rename LICENSE => addons/dialogic/LICENSE (100%) diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml new file mode 100644 index 0000000..1cb9ea0 --- /dev/null +++ b/.github/workflows/license-check.yml @@ -0,0 +1,52 @@ +name: Check Addons Allowed Licenses + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + license-check: + runs-on: ubuntu-latest + + steps: + # 1️⃣ Checkout del repositorio + - name: Checkout repository + uses: actions/checkout@v4 + + # 2️⃣ Verificar que cada addon tenga LICENSE + - name: Check each addon has LICENSE + run: | + missing=false + for dir in addons/*; do + if [ -d "$dir" ] && [ ! -f "$dir/LICENSE" ]; then + echo "❌ Missing LICENSE in $dir" + missing=true + fi + done + if [ "$missing" = true ]; then + exit 1 + + # 3️⃣ Instalar ScanCode Toolkit + - name: Install ScanCode Toolkit + run: | + pip install scancode-toolkit + + # 4️⃣ Escanear licencias en addons + - name: Scan licenses + run: | + scancode --license --json licenses.json addons/ + + # 5️⃣ Falla si se encuentra licencia NO permitida + - name: Fail if license is not allowed + run: | + # Licencias permitidas: MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, GPL-2.0, GPL-3.0 + ALLOWED="MIT|BSD-2-Clause|BSD-3-Clause|Apache-2.0|GPL-2.0|GPL-3.0" + + # Busca licencias detectadas que no estén en la lista de permitidas + forbidden=$(grep -Po '"key": "\K[^"]+' licenses.json | grep -vE "$ALLOWED" || true) + if [ -n "$forbidden" ]; then + echo "❌ Forbidden licenses detected: $forbidden" + exit 1 + fi \ No newline at end of file diff --git a/LICENSE b/addons/dialogic/LICENSE similarity index 100% rename from LICENSE rename to addons/dialogic/LICENSE