From 0000171ebd913048b5a8e4b549c0e3ce6216c54e Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Wed, 21 Aug 2024 10:05:08 +0200 Subject: [PATCH] refactor: remove unused github method --- src/github.ts | 5 ----- 1 file changed, 5 deletions(-) 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;