From 848d7518afa87cb3102f37267045480901fd20f5 Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Sat, 2 Dec 2023 22:35:52 +0100 Subject: [PATCH] refactor: remove unused function --- src/github.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/github.ts b/src/github.ts index f361300..9c7e218 100644 --- a/src/github.ts +++ b/src/github.ts @@ -220,21 +220,6 @@ export class Github implements GithubApi { return assoc_pr_data.some((pr) => pr.number == pull.number); } - /** - * Retrieves the merge commit SHA and its parents for a given pull request. - * @param pull The pull request object. - * @returns An object containing the merge commit SHA and its parents, or null if the merge commit is not found. - */ - public async getMergeCommitShaAndParents(pull: PullRequest) { - const merge_commit_sha = await this.getMergeCommitSha(pull); - if (!merge_commit_sha) { - console.log("likely not merged yet."); - return null; - } - const parents = await this.getParents(merge_commit_sha); - return { merge_commit_sha, parents }; - } - /** * Checks if a commit is a merge commit. * @param parents - An array of parent commit hashes.