File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 99 steps :
1010 - name : Comment on PRs
1111 shell : bash
12+ run : node ${{ github.action_path }}/comment-on-release.ts
1213 env :
1314 PUBLISHED_PACKAGES : ${{ inputs.published-packages }}
1415 REPOSITORY : ${{ github.repository }}
15- run : node {{ github.action_path }}/comment-on-release.ts
16+ GH_TOKEN : $ {{ github.token }}
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ async function commentOnPR(pr: PRInfo, repository: string): Promise<void> {
118118
119119 try {
120120 // Use gh CLI to post the comment
121- execSync ( `gh pr comment ${ number } --body ${ JSON . stringify ( comment ) } ` , {
121+ execSync ( `gh pr comment ${ number } --body ' ${ comment . replace ( / ' / g , '"' ) } ' ` , {
122122 stdio : 'inherit' ,
123123 } )
124124 console . log ( `✓ Commented on PR #${ number } ` )
You can’t perform that action at this time.
0 commit comments