Skip to content

Commit 4814cd5

Browse files
authored
feat(vs-code-ext): update labels and commit message
1 parent 907e2d3 commit 4814cd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/vscode-extensions-updater.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def create_individual_prs(repo, outdated_extensions):
167167

168168
# Stage and commit change
169169
repo.index.add([DOCKERFILE_PATH])
170-
commit_msg = f"Update {ext['id']} to {ext['new_version']}"
170+
commit_msg = f'update(vscode): extension "{ext["id"]}" version "{ext["old_version"]}" → "{ext["new_version"]}"'
171171
repo.index.commit(commit_msg)
172172

173173
# Push branch
@@ -180,12 +180,12 @@ def create_individual_prs(repo, outdated_extensions):
180180
"Accept": "application/vnd.github.v3+json"
181181
}
182182
payload = {
183-
"title": f"[vscode] Automated: {commit_msg}",
183+
"title": commit_msg,
184184
"head": branch_name,
185185
"base": "master",
186186
"body": (
187-
f"This draft PR updates `{ext['id']}` from `{ext['old_version']}` to `{ext['new_version']}`.\n\n"
188-
"Labels: `vscode`, `updates`, `automated`\n\n"
187+
f"This draft PR updates the VSCode extension `{ext['id']}` from `{ext['old_version']}` to `{ext['new_version']}`.\n\n"
188+
"Labels: `dependencies`, `kind/task`, `ready for beta`\n\n"
189189
"_Created automatically by the VSCode Extension Updater Bot._"
190190
),
191191
"draft": True

0 commit comments

Comments
 (0)