diff --git a/src/github.ts b/src/github.ts index 7a2b80e..ac83666 100644 --- a/src/github.ts +++ b/src/github.ts @@ -12,7 +12,6 @@ import * as github from "@actions/github"; export interface GithubApi { getRepo(): Repo; getPayload(): Payload; - getEventName(): string; getPullNumber(): number; createComment(comment: Comment): Promise<{}>; getPullRequest(pull_number: number): Promise; @@ -55,10 +54,6 @@ export class Github implements GithubApi { return this.#context.payload; } - public getEventName() { - return this.#context.eventName; - } - public getPullNumber() { if (this.#context.payload.pull_request) { return this.#context.payload.pull_request.number;