Skip to content

Commit

Permalink
feat(run): add keymap to rerun only failed jobs (#27)
Browse files Browse the repository at this point in the history
Resolves #26
  • Loading branch information
jrowlingson authored Jun 18, 2024
1 parent 07a85db commit bdd80f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ that can be used with any `gh fzf` command:
- `alt-d`: Download artifacts from the selected run
(see `gh run download --help`)
- `alt-r`: Rerun the selected run (see `gh run rerun --help`)
- `alt-R`: Rerun only failed jobs of the selected run (see `gh run rerun --help`)
- `alt-x`: Cancel the selected run (see `gh run cancel --help`)
- `alt-p`: Open `gh fzf pr` filtered for the selected run's branch as HEAD
(see [`pr`](#pr))
Expand Down
3 changes: 2 additions & 1 deletion gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ run_cmd() {
'\'''

# keybinding hints {{{2
run_header="Actions > (enter: watch) (alt-l: logs) (alt-r: rerun) (alt-x: cancel) (alt-n: notify) (alt-p: pr) (alt-d: download)
run_header="Actions > (enter: watch) (alt-l: logs) (alt-r: rerun) (alt-R: rerun failed) (alt-x: cancel) (alt-n: notify) (alt-p: pr) (alt-d: download)
Filters > (alt-f: failed) (alt-i: in_progress) (alt-b: current branch) (alt-u: current user)
$global_binds
Expand All @@ -390,6 +390,7 @@ $global_binds
--bind="enter:execute(gh run watch {-1} $repo_flag)+refresh-preview" \
--bind="alt-l:execute(gh run view --log {-1} $repo_flag)+refresh-preview" \
--bind="alt-r:execute(gh run rerun {-1} $repo_flag)+refresh-preview" \
--bind="alt-R:execute(gh run rerun --failed {-1} $repo_flag)+refresh-preview" \
--bind="alt-d:execute(gh run download {-1} $repo_flag)+refresh-preview" \
--bind="alt-x:execute(gh run cancel {-1} $repo_flag)+refresh-preview" \
--bind="alt-n:execute-silent(
Expand Down

0 comments on commit bdd80f9

Please sign in to comment.