From 3d3e9c784e522c31ab3535bb8ce0979823916de7 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sun, 1 Feb 2026 00:27:40 +0300 Subject: [PATCH 1/5] Test --- objects/obj_controller/Create_0.gml | 2 +- objects/obj_controller/KeyPress_32.gml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/obj_controller/Create_0.gml b/objects/obj_controller/Create_0.gml index 4aea22823..7f50fc101 100644 --- a/objects/obj_controller/Create_0.gml +++ b/objects/obj_controller/Create_0.gml @@ -77,7 +77,7 @@ is_test_map = false; target_navy_number = 5; global.sound_playing = 0; global.defeat = 0; -tutorial = 0; +tutorial=0; sound_in = 0; sound_to = ""; fix_right = 0; diff --git a/objects/obj_controller/KeyPress_32.gml b/objects/obj_controller/KeyPress_32.gml index bfe2d7897..fd4e529a9 100644 --- a/objects/obj_controller/KeyPress_32.gml +++ b/objects/obj_controller/KeyPress_32.gml @@ -7,7 +7,7 @@ if (__b__) { if (__b__) { if ((obj_controller.menu == 0 && !instance_exists(obj_popup_dialogue)) || ((obj_controller.menu == 999) && instance_exists(obj_ncombat))) { if (instance_exists(obj_ncombat)) { - if (obj_ncombat.start == 7) { + if (obj_ncombat.start==7) { exit; } } From ceecfa1970565dc867fe580035985867f8defa8b Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sun, 1 Feb 2026 00:31:26 +0300 Subject: [PATCH 2/5] Fix 1 --- .github/workflows/gobo_check.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gobo_check.yml b/.github/workflows/gobo_check.yml index 590250908..991bd3a9c 100644 --- a/.github/workflows/gobo_check.yml +++ b/.github/workflows/gobo_check.yml @@ -31,8 +31,10 @@ jobs: - name: Run Formatter if: steps.changed-files.outputs.any_changed == 'true' run: | - # Pass all changed files to gobo at once - ./gobo ${{ steps.changed-files.outputs.all_changed_files }} + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do + echo "Formatting $file..." + ./gobo "$file" + done - name: Verify Formatting run: | From b436d59f0c8cc12ee84daba3c6f3cf5de04634a5 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sun, 1 Feb 2026 01:22:25 +0300 Subject: [PATCH 3/5] test 2 --- .github/workflows/gobo_check.yml | 2 +- .github/workflows/gobo_lint.yml | 62 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gobo_lint.yml diff --git a/.github/workflows/gobo_check.yml b/.github/workflows/gobo_check.yml index 991bd3a9c..9e6885b8b 100644 --- a/.github/workflows/gobo_check.yml +++ b/.github/workflows/gobo_check.yml @@ -1,4 +1,4 @@ -name: Format Code +name: GoboLintCheck on: pull_request: diff --git a/.github/workflows/gobo_lint.yml b/.github/workflows/gobo_lint.yml new file mode 100644 index 000000000..355c798d9 --- /dev/null +++ b/.github/workflows/gobo_lint.yml @@ -0,0 +1,62 @@ +name: GoboLint + +on: + issue_comment: + types: [created] + +jobs: + lint: + if: > + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/lint') && + (github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'MEMBER' || + github.event.comment.author_association == 'OWNER') + + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + + steps: + - name: Get PR branch + uses: xt0rted/pull-request-comment-branch@v2 + id: comment-branch + + - name: Checkout PR branch + uses: actions/checkout@v4 + with: + ref: ${{ steps.comment-branch.outputs.head_ref }} + repository: ${{ steps.comment-branch.outputs.head_owner }}/${{ steps.comment-branch.outputs.head_repo }} + fetch-depth: 0 + + - name: Get Changed Files + id: changed-files + uses: tj-actions/changed-files@v44 + with: + base_sha: ${{ steps.comment-branch.outputs.base_ref }} + files: '**.gml' + + - name: Setup Gobo + if: steps.changed-files.outputs.any_changed == 'true' + run: | + curl -LO https://github.com/EttyKitty/Gobo/releases/download/v1.0.0/gobo-ubuntu.zip + unzip gobo-ubuntu.zip + chmod +x ./gobo + + - name: Run Linter + if: steps.changed-files.outputs.any_changed == 'true' + run: | + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do + if [ -f "$file" ]; then + echo "Linting $file..." + ./gobo "$file" + fi + done + + - name: Commit Changes + if: steps.changed-files.outputs.any_changed == 'true' + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "style: auto-lint GML files with Gobo" + file_pattern: '**.gml' \ No newline at end of file From a4de7099a0bf756f59a24c2f615663dbb8bdadf6 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sun, 1 Feb 2026 01:23:22 +0300 Subject: [PATCH 4/5] Discard changes to objects/obj_controller/Create_0.gml --- objects/obj_controller/Create_0.gml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/obj_controller/Create_0.gml b/objects/obj_controller/Create_0.gml index 7f50fc101..4aea22823 100644 --- a/objects/obj_controller/Create_0.gml +++ b/objects/obj_controller/Create_0.gml @@ -77,7 +77,7 @@ is_test_map = false; target_navy_number = 5; global.sound_playing = 0; global.defeat = 0; -tutorial=0; +tutorial = 0; sound_in = 0; sound_to = ""; fix_right = 0; From 031b1d95624106887e72c0cd50272b57584ee9b5 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Sun, 1 Feb 2026 01:23:26 +0300 Subject: [PATCH 5/5] Discard changes to objects/obj_controller/KeyPress_32.gml --- objects/obj_controller/KeyPress_32.gml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/obj_controller/KeyPress_32.gml b/objects/obj_controller/KeyPress_32.gml index fd4e529a9..bfe2d7897 100644 --- a/objects/obj_controller/KeyPress_32.gml +++ b/objects/obj_controller/KeyPress_32.gml @@ -7,7 +7,7 @@ if (__b__) { if (__b__) { if ((obj_controller.menu == 0 && !instance_exists(obj_popup_dialogue)) || ((obj_controller.menu == 999) && instance_exists(obj_ncombat))) { if (instance_exists(obj_ncombat)) { - if (obj_ncombat.start==7) { + if (obj_ncombat.start == 7) { exit; } }