Skip to content

Commit 651dc38

Browse files
committed
feat: add docs and update PR body
1 parent 11a2d9f commit 651dc38

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

ci/dev/update-vscode.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/usr/bin/env bash
2+
# Description: This is a script to make the process of updating vscode versions easier
3+
# Run it with `yarn update:vscode` and it will do the following:
4+
# 1. Check that you have a remote called `vscode`
5+
# 2. Ask you which version you want to upgrade to
6+
# 3. Grab the exact version from the package.json i.e. 1.53.2
7+
# 4. Fetch the vscode remote branches to run the subtree update
8+
# 5. Run the subtree update and pull in the vscode update
9+
# 6. Commit the changes (including merge conflicts)
10+
# 7. Open a draft PR
11+
212
set -euo pipefail
313

414
# This function expects two arguments
@@ -88,13 +98,12 @@ main() {
8898
# Get the files with conflicts before we commit them
8999
# so we can list them in the PR body
90100
CONFLICTS=$(git diff --name-only --diff-filter=U | while read line; do echo "- $line"; done)
101+
PR_BODY=$(make_pr_body "$VSCODE_EXACT_VERSION" "$CONFLICTS")
91102
92-
PR_BODY=$(make_pr_body $VSCODE_EXACT_VERSION $CONFLICTS)
93-
94-
echo "Forcing a commit with conflicts"
103+
echo -e "\nForcing a commit with conflicts"
95104
echo "Note: this is intentional"
96105
echo "If we don't do this, code review is impossible."
97-
echo "For more info, see docs: docs/CONTRIBUTING.md#updating-vs-code"
106+
echo -e "For more info, see docs: docs/CONTRIBUTING.md#updating-vs-code\n"
98107
git add . && git commit -am "chore(vscode): update to $VSCODE_EXACT_VERSION"
99108
100109
# Note: we can't open a draft PR unless their are changes.

0 commit comments

Comments
 (0)