Files
zed/script/triage_watcher.jl
Mohamad Khani b9819977a5 logiguard fork v3: full patch set on verified 8c74db0 tree
Includes prior-session patches (carry forward so the app compiles):
  - crates/gpui/build.rs: cross-compile manifest fix
  - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method
  - crates/gpui/src/window.rs: Window::activate_with_token public API
  - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix

Plus the focus-serial fix:
  - serial.rs: SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; latest_serial_of()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 01:52:12 +03:30

39 lines
1.3 KiB
Julia

## Triage Watcher v0.1
# This is a small script to watch for new issues on the Zed repository and open them in a new browser tab interactively.
#
## Installing Julia
#
# You need Julia installed on your system:
# curl -fsSL https://install.julialang.org | sh
#
## Running this script:
# 1. It only works on Macos/Linux
# Open a new Julia repl with `julia` inside the `zed` repo
# 2. Paste the following code
# 3. Whenever you close your computer, just type the Up arrow on the REPL + enter to rerun the loop again to resume
function get_issues()
entries = filter(x -> occursin("state:needs triage", x), split(read(`gh issue list -L 10`, String), '\n'))
top = findfirst.('\t', entries) .- 1
[entries[i][begin:top[i]] for i in eachindex(entries)]
end
nums = get_issues();
while true
new_nums = get_issues()
# Open each new issue in a new browser tab
for issue_num in setdiff(new_nums, nums)
url = "https://github.com/zed-industries/zed/issues/" * issue_num
println("\nOpening $url")
open_tab = `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $url`
try
sound_file = "/Users/mrg/Downloads/mario_coin_sound.mp3"
run(`afplay -v 0.02 $sound_file`)
finally
end
run(open_tab)
end
nums = new_nums
print("🧘🏼")
sleep(60)
end