Skip to content

Commit 037f4fb

Browse files
committed
fix: formatting errors
1 parent e0b948e commit 037f4fb

File tree

5 files changed

+75
-13
lines changed

5 files changed

+75
-13
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Discord Notifications
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # Notify for all branches
7+
pull_request:
8+
branches:
9+
- '**' # Notify for all PRs
10+
workflow_run:
11+
workflows: ['Generic CI', 'Godot CI', 'Build, Release and Deploy']
12+
types:
13+
- completed
14+
15+
jobs:
16+
notify-on-push:
17+
name: Notify on Push
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Notify Discord about Commit
21+
uses: tsickert/discord-webhook@v6.0.0
22+
with:
23+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
24+
embed-title: '🚀 New Commit Pushed!'
25+
embed-description: |
26+
**Commit Message:** ${{ github.event.head_commit.message }}
27+
**Branch:** ${{ github.ref_name }}
28+
**Author:** ${{ github.actor }}
29+
[View Commit](${{ github.event.head_commit.url }})
30+
embed-color: 3066993 # Blue
31+
32+
notify-on-completion:
33+
name: Notify on Workflow Completion
34+
runs-on: ubuntu-latest
35+
if: ${{ always() }} # Runs whether the workflow succeeds or fails
36+
steps:
37+
- name: Notify Discord about Workflow Status
38+
uses: tsickert/discord-webhook@v6.0.0
39+
with:
40+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
41+
embed-title: 'Status: ${{ job.status }} for ${{ github.workflow }}'
42+
embed-description: |
43+
**Repository:** ${{ github.repository }}
44+
**Branch:** ${{ github.ref_name }}
45+
**Triggered by:** ${{ github.actor }}
46+
embed-color: ${{ job.status == 'success' && 3066993 || 15158332 }} # Green for success, Red for failure
47+
48+
notify-on-failure:
49+
name: Notify on Failure
50+
runs-on: ubuntu-latest
51+
if: ${{ failure() }}
52+
steps:
53+
- name: Notify Discord about Failure
54+
uses: tsickert/discord-webhook@v6.0.0
55+
with:
56+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
57+
embed-title: '🚨 Workflow Failed!'
58+
embed-description: |
59+
**Workflow:** ${{ github.workflow }}
60+
**Branch:** ${{ github.ref_name }}
61+
**Failed Job:** ${{ github.job }}
62+
**Triggered by:** ${{ github.actor }}
63+
embed-color: 15158332 # Red

game/core/api/speech_to_text/hf_stt.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ func _handle_stream_chunk(chunk: PackedByteArray) -> void:
7272
response = response.strip_edges() # Remove leading and trailing whitespaces, including new lines
7373
var data_entries := response.split("\n\n") # Split the body into individual data entries
7474
for entry in data_entries:
75-
if !handle_chunk_entry(entry.replace("data: ", "")):
75+
if !_handle_chunk_entry(entry.replace("data: ", "")):
7676
return
7777

7878

79-
func handle_chunk_entry(entry: String) -> bool:
80-
Logger.debug("handle_chunk_entry:entry", entry)
79+
func _handle_chunk_entry(entry: String) -> bool:
80+
Logger.debug("_handle_chunk_entry:entry", entry)
8181
if entry == "[DONE]":
82-
Logger.debug("handle_chunk_entry:stream_result", _stream_text)
82+
Logger.debug("_handle_chunk_entry:stream_result", _stream_text)
8383
_http_stream_client.finish_request()
8484
SignalManager.speech_to_text_chunk_added.emit("")
8585
return false

game/core/api/text/ollama.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ func _handle_stream_chunk(chunk: PackedByteArray) -> void:
178178
response = response.strip_edges() # Remove leading and trailing whitespaces, including new lines
179179
var data_entries := response.split("\n\n") # Split the body into individual data entries
180180
for entry in data_entries:
181-
if !handle_chunk_entry(entry.replace("data: ", "")):
181+
if !_handle_chunk_entry(entry.replace("data: ", "")):
182182
return
183183

184184

185-
func handle_chunk_entry(entry: String) -> bool:
186-
Logger.debug("handle_chunk_entry:entry", entry)
185+
func _handle_chunk_entry(entry: String) -> bool:
186+
Logger.debug("_handle_chunk_entry:entry", entry)
187187
if entry == "[DONE]":
188-
Logger.debug("handle_chunk_entry:stream_result", _stream_text)
188+
Logger.debug("_handle_chunk_entry:stream_result", _stream_text)
189189
_http_stream_client.finish_request()
190190
SignalManager.text_chunk_added.emit("")
191191
return false

game/core/api/text/open_ai.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ func _handle_stream_chunk(chunk: PackedByteArray) -> void:
203203
response = response.strip_edges() # Remove leading and trailing whitespaces, including new lines
204204
var data_entries := response.split("\n\n") # Split the body into individual data entries
205205
for entry in data_entries:
206-
if !handle_chunk_entry(entry.replace("data: ", "")):
206+
if !_handle_chunk_entry(entry.replace("data: ", "")):
207207
return
208208

209209

210-
func handle_chunk_entry(entry: String) -> bool:
211-
Logger.debug("handle_chunk_entry:entry", entry)
210+
func _handle_chunk_entry(entry: String) -> bool:
211+
Logger.debug("_handle_chunk_entry:entry", entry)
212212
if entry == "[DONE]":
213-
Logger.debug("handle_chunk_entry:stream_result", _stream_text)
213+
Logger.debug("_handle_chunk_entry:stream_result", _stream_text)
214214
_http_stream_client.finish_request()
215215
SignalManager.text_chunk_added.emit("")
216216
return false

game/interface/inventory/control/inventory_control_grid.gd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ var inventory: InventoryGrid:
114114
var _inventory_control_item_container: Control
115115
var _inventory_control_drop_zone: DropZone
116116
var _selected_item: InterfaceInventoryItem
117-
118117
var _field_background_grid: Control
119118
var _field_backgrounds: Array
120119
var _selection_panel: Panel

0 commit comments

Comments
 (0)