Skip to content

Commit 04db5f4

Browse files
authored
chore(build): fix updating draft releases to contain tag (#691)
1 parent 25d0a65 commit 04db5f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/build/src/github-repo.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ describe('GithubRepo', () => {
227227
await githubRepo.updateDraftRelease(params);
228228
expect(updateRelease).to.have.been.calledWith({
229229
release_id: 'existing_id',
230+
tag_name: params.tag,
230231
owner: 'mongodb-js',
231232
repo: 'mongosh',
232233
name: params.name,

packages/build/src/github-repo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class GithubRepo {
122122
await this.octokit.repos.updateRelease({
123123
...this.repo,
124124
release_id: existingRelease.id,
125+
tag_name: release.tag,
125126
name: release.name,
126127
body: release.notes,
127128
draft: true

0 commit comments

Comments
 (0)