From 4c892f42587151481057422d01254ea006addf4a Mon Sep 17 00:00:00 2001 From: Michael Overmeyer <michael@overmeyer.io> Date: Mon, 25 Oct 2021 20:13:55 -0400 Subject: [PATCH] Add a `deleteTag` method Calls https://docs.github.com/en/rest/reference/git#delete-a-reference --- src/github.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/github.ts b/src/github.ts index 21265d6..4435876 100644 --- a/src/github.ts +++ b/src/github.ts @@ -34,6 +34,12 @@ export interface Releaser { tag: string; }): Promise<{ data: Release }>; + deleteTag(params: { + owner: string; + repo: string; + ref: string; + }): void; + createRelease(params: { owner: string; repo: string; @@ -79,6 +85,14 @@ export class GitHubReleaser implements Releaser { return this.github.rest.repos.getReleaseByTag(params); } + deleteTag(params: { + owner: string; + repo: string; + ref: string; + }): void { + return this.github.rest.git.deleteRef(params); + } + createRelease(params: { owner: string; repo: string;