diff --git a/justfile b/justfile index efc31a5..826eabe 100644 --- a/justfile +++ b/justfile @@ -421,7 +421,9 @@ rebase-commits commit=`cd "$invokedir"; just _a_commit`: push-new-pr: #!/usr/bin/env -S bash -euo pipefail -x # TODO: verify "origin" is a nixpkgs fork and not NixOS/nixpkgs - title=$(just _a_commit_title ||:) + declare title + title="$(just _a_commit_title ||:)" + title="$(gum input --placeholder="foobar: did a thing" --value="$title" ||:)" $GIT -c push.autoSetupRemote=true push origin if [[ -n "$title" ]]; then gh pr create --title="$title" @@ -489,7 +491,7 @@ fix *packages: [[ "${#packages[@]}" -gt 0 ]] || packages=($(just _some_packages)) [[ "${#packages[@]}" -gt 0 ]] || { printf >&2 "%s\n" "ERROR: no packages chosen..."; false; } export JUST_SYSTEM="$(just _a_system)" - just open-package-urls "${packages[0]}" + just open-package-urls "${packages[0]}" ||: cd "$(just _new_worktree fix "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")" just _fix "${packages[@]}" ||: if gum confirm "Try to bump?" --default=no; then