From 7669c68293c1290b201bec10b05ec2334afec6c8 Mon Sep 17 00:00:00 2001 From: xiaobo_wang Date: Mon, 24 Apr 2023 13:48:57 +0800 Subject: [PATCH] fix: createComment in Executor.ts --- source/platforms/platform.ts | 2 +- source/runner/Executor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/platforms/platform.ts b/source/platforms/platform.ts index 180937fcc..d8405a84a 100644 --- a/source/platforms/platform.ts +++ b/source/platforms/platform.ts @@ -74,7 +74,7 @@ export interface PlatformCommunicator { /** Gets inline comments for current PR */ getInlineComments: (dangerID: string) => Promise /** Creates a comment on the PR */ - createComment: (dangerID: string, body: string) => Promise + createComment: (body: string) => Promise /** Creates an inline comment on the PR if possible */ createInlineComment: (git: GitDSL, comment: string, path: string, line: number) => Promise /** Updates an inline comment */ diff --git a/source/runner/Executor.ts b/source/runner/Executor.ts index 2e6ab4842..52c3f3888 100644 --- a/source/runner/Executor.ts +++ b/source/runner/Executor.ts @@ -326,7 +326,7 @@ export class Executor { } if (this.options.newComment) { - issueURL = await this.platform.createComment(dangerID, comment) + issueURL = await this.platform.createComment(comment) } else { issueURL = await this.platform.updateOrCreateComment(dangerID, comment) }