tea-create-pr fixed
All checks were successful
checks-impure / test (pull_request) Successful in 31s
checks / test (pull_request) Successful in 1m13s

This commit is contained in:
2023-12-01 16:08:48 +01:00
parent f28634d4c7
commit 5a12de2ad2

View File

@@ -6,7 +6,7 @@ targetBranch="${2:-main}"
shift && shift shift && shift
TMPDIR="$(mktemp -d)" TMPDIR="$(mktemp -d)"
currentBranch="$(git rev-parse --abbrev-ref HEAD)" currentBranch="$(git rev-parse --abbrev-ref HEAD)"
user="$(git config --get user.name)" user="$(tea login list -o simple | cut -d" " -f4 | head -n1)"
tempRemoteBranch="$user-$currentBranch" tempRemoteBranch="$user-$currentBranch"
nix fmt -- --fail-on-change nix fmt -- --fail-on-change
@@ -30,4 +30,5 @@ tea pr create \
--description "$rest" \ --description "$rest" \
--head "$tempRemoteBranch" \ --head "$tempRemoteBranch" \
--base "$targetBranch" \ --base "$targetBranch" \
--labels "needs-review" \
"$@" "$@"