Skip to content

Commit

Permalink
chore(build): fix updating draft releases to contain tag (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
rose-m authored Mar 3, 2021
1 parent 25d0a65 commit 04db5f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/build/src/github-repo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ describe('GithubRepo', () => {
await githubRepo.updateDraftRelease(params);
expect(updateRelease).to.have.been.calledWith({
release_id: 'existing_id',
tag_name: params.tag,
owner: 'mongodb-js',
repo: 'mongosh',
name: params.name,
Expand Down
1 change: 1 addition & 0 deletions packages/build/src/github-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export class GithubRepo {
await this.octokit.repos.updateRelease({
...this.repo,
release_id: existingRelease.id,
tag_name: release.tag,
name: release.name,
body: release.notes,
draft: true
Expand Down

0 comments on commit 04db5f4

Please sign in to comment.