feat: format PR and issue body text in prompt variables (#330)
* feat: format PR and issue body text in prompt variables Apply formatBody function to PR_BODY and ISSUE_BODY variables to properly handle images and markdown formatting in prompt context. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * style: format PR_BODY and ISSUE_BODY ternary expressions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add claude_code_oauth_token to all GitHub workflow tests Add claude_code_oauth_token parameter to all test workflow files to support new authentication method. This ensures proper authentication for Claude Code API access in GitHub Actions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Revert "feat: add claude_code_oauth_token to all GitHub workflow tests" This reverts commit fccc1a0ebd683fadef2730f2876b445a24a1e4e0. --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a58dc37018
commit
9cf75f75b9
@ -481,8 +481,14 @@ function substitutePromptVariables(
|
||||
: "",
|
||||
PR_TITLE: eventData.isPR && contextData?.title ? contextData.title : "",
|
||||
ISSUE_TITLE: !eventData.isPR && contextData?.title ? contextData.title : "",
|
||||
PR_BODY: eventData.isPR && contextData?.body ? contextData.body : "",
|
||||
ISSUE_BODY: !eventData.isPR && contextData?.body ? contextData.body : "",
|
||||
PR_BODY:
|
||||
eventData.isPR && contextData?.body
|
||||
? formatBody(contextData.body, githubData.imageUrlMap)
|
||||
: "",
|
||||
ISSUE_BODY:
|
||||
!eventData.isPR && contextData?.body
|
||||
? formatBody(contextData.body, githubData.imageUrlMap)
|
||||
: "",
|
||||
PR_COMMENTS: eventData.isPR
|
||||
? formatComments(comments, githubData.imageUrlMap)
|
||||
: "",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user