Skip to content

Commit 1907143

Browse files
committed
Jet instead of TADA sound
1 parent 9020b4c commit 1907143

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Lives in your menubar like a tiny waterfowl of productivity shame, watching your
1616
## What It Does
1717

1818
- **🪿 Honks** when you're blocking someone's PR (authentic goose noises included)
19-
- **🎉 Tada sounds** when your own PR is ready for the next stage
19+
- **✈️ Jet sounds** when your own PR is ready for the next stage
2020
- **🧠 Smart turn-based assignment** - knows who is blocking a PR, knows when tests are failing, etc.
2121
- **⭐ Auto-start** on login (macOS)
2222

cmd/goose/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ func (app *App) checkForNewlyBlockedPRs(ctx context.Context) {
708708
continue
709709
}
710710

711-
// If we already played the incoming sound (goose/honk), wait 2 seconds before playing outgoing sound (tada)
711+
// If we already played the incoming sound (goose/honk), wait 2 seconds before playing outgoing sound (jet)
712712
if playedIncomingSound && !playedOutgoingSound {
713713
// Check if this PR would trigger a sound
714714
prevState, hasHistory := notificationHistory[pr.URL]
@@ -725,7 +725,7 @@ func (app *App) checkForNewlyBlockedPRs(ctx context.Context) {
725725
}
726726

727727
if wouldPlaySound {
728-
log.Println("[SOUND] Delaying 2 seconds between goose and tada sounds")
728+
log.Println("[SOUND] Delaying 2 seconds between goose and jet sounds")
729729
time.Sleep(2 * time.Second)
730730
}
731731
}

cmd/goose/sound.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"time"
1515
)
1616

17-
//go:embed sounds/tada.wav
18-
var tadaSound []byte
17+
//go:embed sounds/jet.wav
18+
var jetSound []byte
1919

2020
//go:embed sounds/honk.wav
2121
var honkSound []byte
@@ -32,11 +32,11 @@ func (app *App) initSoundCache() {
3232
return
3333
}
3434

35-
// Write tada sound
36-
tadaPath := filepath.Join(soundDir, "tada.wav")
37-
if _, err := os.Stat(tadaPath); os.IsNotExist(err) {
38-
if err := os.WriteFile(tadaPath, tadaSound, 0o600); err != nil {
39-
log.Printf("Failed to cache tada sound: %v", err)
35+
// Write jet sound
36+
jetPath := filepath.Join(soundDir, "jet.wav")
37+
if _, err := os.Stat(jetPath); os.IsNotExist(err) {
38+
if err := os.WriteFile(jetPath, jetSound, 0o600); err != nil {
39+
log.Printf("Failed to cache jet sound: %v", err)
4040
}
4141
}
4242

@@ -58,7 +58,7 @@ func (app *App) playSound(ctx context.Context, soundType string) {
5858

5959
// Select the sound file with validation to prevent path traversal
6060
allowedSounds := map[string]string{
61-
"rocket": "tada.wav",
61+
"rocket": "jet.wav",
6262
"honk": "honk.wav",
6363
}
6464

cmd/goose/sounds/jet.wav

1.28 MB
Binary file not shown.

0 commit comments

Comments
 (0)