Skip to content

Commit

Permalink
refactor: remove unused github method
Browse files Browse the repository at this point in the history
  • Loading branch information
korthout committed Aug 21, 2024
1 parent 0dd861c commit 0000171
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PullRequest>;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0000171

Please sign in to comment.