@@ -15,7 +15,7 @@ main() {
15
15
16
16
# Ask which version we should update to
17
17
# In the future, we'll automate this and grab the latest version automatically
18
- read -p " What version of VSCode would you like to update to? (i.e. 1.52) " VSCODE_VERSION_TO_UPDATE
18
+ read -p " What version of VSCode would you like to update to? (i.e. 1.52) " VSCODE_VERSION_TO_UPDATE
19
19
20
20
# Check that this version exists
21
21
if [[ -z $( git ls-remote --heads vscode release/$VSCODE_VERSION_TO_UPDATE ) ]]; then
@@ -29,10 +29,10 @@ main() {
29
29
30
30
# Check if GitHub CLI is installed
31
31
if ! command -v gh & > /dev/null; then
32
- echo " GitHub CLI could not be found."
33
- echo " If you install it before you run this script next time, we'll open a draft PR for you!"
34
- echo -e " See docs here: https://github.com/cli/cli#installation\n"
35
- exit
32
+ echo " GitHub CLI could not be found."
33
+ echo " If you install it before you run this script next time, we'll open a draft PR for you!"
34
+ echo -e " See docs here: https://github.com/cli/cli#installation\n"
35
+ exit
36
36
fi
37
37
38
38
# Push branch to remote if not already pushed
@@ -49,7 +49,6 @@ main() {
49
49
# To read about these flags, visit the docs: https://cli.github.com/manual/gh_pr_create
50
50
gh pr create --base master --title " feat(vscode): update to version $VSCODE_VERSION_TO_UPDATE " --body " This PR updates vscode to version: $VSCODE_VERSION_TO_UPDATE " --reviewer @cdr/code-server-reviewers --repo cdr/code-server --draft
51
51
52
-
53
52
echo " Going to try to update vscode for you..."
54
53
echo -e " Running: git subtree pull --prefix lib/vscode vscode release/${VSCODE_VERSION_TO_UPDATE} --squash\n"
55
54
# Try to run subtree update command
0 commit comments