We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0300ba commit aa5872cCopy full SHA for aa5872c
2 files changed
.github/comment-on-release/action.yml
@@ -9,7 +9,8 @@ runs:
9
steps:
10
- name: Comment on PRs
11
shell: bash
12
+ run: node ${{ github.action_path }}/comment-on-release.ts
13
env:
14
PUBLISHED_PACKAGES: ${{ inputs.published-packages }}
15
REPOSITORY: ${{ github.repository }}
- run: node {{ github.action_path }}/comment-on-release.ts
16
+ GH_TOKEN: ${{ github.token }}
.github/comment-on-release/comment-on-release.ts
@@ -118,7 +118,7 @@ async function commentOnPR(pr: PRInfo, repository: string): Promise<void> {
118
119
try {
120
// Use gh CLI to post the comment
121
- execSync(`gh pr comment ${number} --body ${JSON.stringify(comment)}`, {
+ execSync(`gh pr comment ${number} --body '${comment.replace(/'/g, '"')}'`, {
122
stdio: 'inherit',
123
})
124
console.log(`✓ Commented on PR #${number}`)
0 commit comments