m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-14 14:23:47 -05:00

added gh-watch function

Chris Rose
2023-03-08 11:23:16 -08:00
parent e45879fd7f
commit 70c6a136e4

@@ -796,7 +796,18 @@ git rebase -i master --autosquash
![forgit-gi](https://raw.githubusercontent.com/wfxr/i/master/forgit-gi.png)
Watch GitHub actions for the current branch, with selection via fzf
```sh
# gh-watch -- watch the current actions
gh-watch() {
gh run list \
--branch $(git rev-parse --abbrev-ref HEAD) \
--json status,name,databaseId |
jq -r '.[] | select(.status != "completed") | (.databaseId | tostring) + "\t" + (.name)' |
fzf -1 -0 | awk '{print $1}' | xargs gh run watch
}
```
### [jrnl](https://github.com/jrnl-org/jrnl)