This commit is contained in:
2025-05-14 22:13:46 +02:00
parent c067f9fc8c
commit f5198370d3

View File

@@ -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