Skip to content

Commit 37e0b1a

Browse files
committed
fix
1 parent 9fd506b commit 37e0b1a

File tree

1 file changed

+3
-3
lines changed
  • apps/array/src/main/services

1 file changed

+3
-3
lines changed

apps/array/src/main/services/git.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ const addPullRequestComment = async (
636636

637637
const { stdout } = await execAsync(
638638
`gh api repos/${repo}/pulls/${prNumber}/comments ` +
639-
`-f body="${options.body.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}" ` +
639+
`-f body="${options.body.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}" ` +
640640
`-f commit_id="${options.commitId}" ` +
641641
`-f path="${options.path}" ` +
642642
`-F line=${options.line} ` +
@@ -680,7 +680,7 @@ const replyToPullRequestComment = async (
680680
// Create a reply comment using the same commit, path, and line as the original
681681
const { stdout } = await execAsync(
682682
`gh api repos/${repo}/pulls/${prNumber}/comments ` +
683-
`-f body="${options.body.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}" ` +
683+
`-f body="${options.body.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}" ` +
684684
`-f commit_id="${originalComment.commit_id}" ` +
685685
`-f path="${originalComment.path}" ` +
686686
`-F line=${originalComment.line} ` +
@@ -710,7 +710,7 @@ const updatePullRequestComment = async (
710710
const repo = await getRepositoryFromRemoteUrl(directoryPath);
711711

712712
const { stdout } = await execAsync(
713-
`gh api repos/${repo}/pulls/comments/${commentId} -X PATCH -f body="${content.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`,
713+
`gh api repos/${repo}/pulls/comments/${commentId} -X PATCH -f body="${content.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`,
714714
{ cwd: directoryPath },
715715
);
716716

0 commit comments

Comments
 (0)