Skip to content

Commit

Permalink
ci: correctly delete the head branch (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Mar 31, 2022
1 parent f0ab4e8 commit 6900b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if (previousPullRequest) {
await octokit.request('DELETE /repos/{owner}/{repo}/git/refs/{ref}', {
owner: OWNER,
repo: REPOSITORY,
ref: `heads/chore/release/${newVersion['discord-api-types']}`,
ref: `heads/${previousPullRequest.head.ref}`,
});

console.log(`✅ Done. Pull request ${previousPullRequest.number} was closed and will be recreated.`);
Expand Down

0 comments on commit 6900b74

Please sign in to comment.