Add token test.

This commit is contained in:
Nick Cipollo
2019-08-26 12:15:12 -04:00
parent 0412ec85b5
commit 488aa36d03
4 changed files with 58 additions and 4 deletions

View File

@@ -11,14 +11,14 @@ export class Releases {
this.git = git;
}
async create(): Promise<Response<ReposCreateReleaseResponse>> {
async create(tag: string, commitHash?: string): Promise<Response<ReposCreateReleaseResponse>> {
return this.git.repos.createRelease({
name: "Test release",
draft: true,
owner: this.context.repo.owner,
repo: this.context.repo.repo,
target_commitish: "master",
tag_name: "0.0.666"
target_commitish: commitHash,
tag_name: tag
})
}
}