mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-11 02:44:20 +00:00
Add a deleteTag
method
Calls https://docs.github.com/en/rest/reference/git#delete-a-reference
This commit is contained in:
parent
1283c2357e
commit
4c892f4258
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue