diff --git a/dist/index.js b/dist/index.js index 30bb3d3e2..43599a66c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -872,25 +872,6 @@ class IssuesProcessor { } }); } - _getPullRequest(issue) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const issueLogger = new issue_logger_1.IssueLogger(issue); - try { - this._consumeIssueQueryOperation(issue); - (_a = this._statistics) === null || _a === void 0 ? void 0 : _a.incrementFetchedPullRequestsCount(); - const pullRequest = yield this.client.pulls.get({ - owner: github_1.context.repo.owner, - repo: github_1.context.repo.repo, - pull_number: issue.number - }); - return pullRequest.data; - } - catch (error) { - issueLogger.error(`Error when getting this $$type: ${error.message}`); - } - }); - } // Delete the branch on closed pull request _deleteBranch(issue) { var _a; diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index 8e777805c..0a9abaae0 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -858,27 +858,6 @@ export class IssuesProcessor { } } - private async _getPullRequest( - issue: Issue - ): Promise { - const issueLogger: IssueLogger = new IssueLogger(issue); - - try { - this._consumeIssueQueryOperation(issue); - this._statistics?.incrementFetchedPullRequestsCount(); - - const pullRequest = await this.client.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: issue.number - }); - - return pullRequest.data; - } catch (error) { - issueLogger.error(`Error when getting this $$type: ${error.message}`); - } - } - // Delete the branch on closed pull request private async _deleteBranch(issue: Issue): Promise { const issueLogger: IssueLogger = new IssueLogger(issue);