Skip to content

Commit

Permalink
fix: createComment in Executor.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobo_wang committed Apr 24, 2023
1 parent 899a820 commit 7669c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/platforms/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface PlatformCommunicator {
/** Gets inline comments for current PR */
getInlineComments: (dangerID: string) => Promise<Comment[]>
/** Creates a comment on the PR */
createComment: (dangerID: string, body: string) => Promise<any>
createComment: (body: string) => Promise<any>
/** Creates an inline comment on the PR if possible */
createInlineComment: (git: GitDSL, comment: string, path: string, line: number) => Promise<any>
/** Updates an inline comment */
Expand Down
2 changes: 1 addition & 1 deletion source/runner/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7669c68

Please sign in to comment.