Skip to content

Commit 5b442c1

Browse files
committed
Tweak head option to open a pr
1 parent 3360fca commit 5b442c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/commands/fix/open-pr.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,16 @@ export async function openGitHubPullRequest(
106106
if (!pat) {
107107
throw new Error('Missing SOCKET_SECURITY_GITHUB_PAT environment variable')
108108
}
109-
const commitMsg = `chore: upgrade ${name} to ${version}`
110109
const url = `https://x-access-token:${pat}@github.com/${owner}/${repo}`
111-
112110
await spawn('git', ['remote', 'set-url', 'origin', url], {
113111
cwd
114112
})
115113
const octokit = getOctokit()
116114
return await octokit.pulls.create({
117115
owner,
118116
repo,
119-
title: commitMsg,
120-
head: `${owner}:${branch}`,
117+
title: `chore: upgrade ${name} to ${version}`,
118+
head: branch,
121119
base: baseBranch,
122120
body: `[socket] Upgrade \`${name}\` to ${version}`
123121
})

0 commit comments

Comments
 (0)