Skip to content

Commit a163547

Browse files
bojanclaude
authored andcommitted
fix: Use JavaScript substring in github-script template
GitHub Actions expressions don't support substring() method. Use context.payload instead of ${{ }} syntax in JS template literal. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0d3787b commit a163547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/codex-pr-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
${review}
117117
118118
---
119-
<sub>Automated review by [OpenAI Codex](https://openai.com/codex) • Commit: ${{ github.event.pull_request.head.sha.substring(0, 7) }}</sub>
119+
<sub>Automated review by [OpenAI Codex](https://openai.com/codex) • Commit: ${context.payload.pull_request.head.sha.substring(0, 7)}</sub>
120120
`;
121121
122122
if (codexComments.length > 0) {

0 commit comments

Comments
 (0)