From 1edd050baf20cfde8bfc8885d632ab163b302370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Raz=20Guzm=C3=A1n=20Macedo?= Date: Fri, 19 Dec 2025 12:09:40 -0600 Subject: [PATCH] Add script/triage_watcher.jl (#45384) Release Notes: - N/A --- script/triage_watcher.jl | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 script/triage_watcher.jl diff --git a/script/triage_watcher.jl b/script/triage_watcher.jl new file mode 100644 index 0000000000000000000000000000000000000000..905d2fdd4eb73c7bcbed304f9d4d94d0d94943f2 --- /dev/null +++ b/script/triage_watcher.jl @@ -0,0 +1,38 @@ +## 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