Skip to content

Commit

Permalink
fix: Fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
goce-cz committed Jun 9, 2022
1 parent 17d299c commit 3bf0c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bin/src/internal/utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function getGitHubRepository (packageJson: PackageJson): GitHubRepository
export async function findLatestReleaseDraft (targetBranchName: string, repository: GitHubRepository, token?: string): Promise<Release | undefined> {
const octokit = new Octokit({ auth: token })
const { owner, repo } = repository
const { data: releases } = await octokit.request('GET /repos/:owner/:repo/releases', {
const releases: Release[] = (await octokit.request('GET /repos/:owner/:repo/releases', {
owner,
repo
})
})).data
return releases.find(release => release.draft && release.target_commitish === targetBranchName)
}

0 comments on commit 3bf0c59

Please sign in to comment.