Skip to content

Commit

Permalink
fix: gh create command
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Jun 19, 2024
1 parent 910765a commit c6e0b80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/create-cli-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pushd $CLI_DIR
UPGRADE=$(go run scripts/upgrade-snyk-go-dependencies.go --name=snyk-ls)
LS_VERSION=$(echo $UPGRADE | sed 's/.*Sha: \(.*\) URL.*/\1/')
BRANCH=feat/automatic-upgrade-of-ls-to-$LS_VERSION
BASE=$(git log --pretty=tformat:"%h" -n1 .)
git checkout -b $BRANCH

git config --global user.email "[email protected]"
Expand All @@ -32,5 +33,5 @@ pushd $CLI_DIR
git push --set-upstream origin $BRANCH

COMMIT_HASH=$(git log --pretty=tformat:"%h" -n1 .)
gh pr create --repo github.com/snyk/cli --base main --fill-verbose --head $COMMIT_HASH --title "feat(language-server): integrate LS (automatic PR) ($LS_VERSION)" --body "$(echo $UPGRADE | sed 's/.*Message: \(.*\) URL.*$/\1/')"
gh pr create --repo github.com/snyk/cli --base $BASE --head $COMMIT_HASH --title "feat(language-server): integrate LS ($LS_VERSION)" --body "$(echo $UPGRADE | sed 's/.*Message: \(.*\) URL.*$/\1/')"
popd

0 comments on commit c6e0b80

Please sign in to comment.