Switch org-wide workflow to Claude CLI and fix issue.opened trigger#10
Conversation
- Replace `anthropics/claude-code-action` with direct Claude CLI usage (`npm install -g @anthropic-ai/claude-code`) in the org-wide workflow. The CLI is invoked with `claude -p` passing a prompt that includes the repository name and the issue comment body. - Add `github.event.issue.body` to the COMMENT_BODY fallback chain in the react-on-comment workflow so that `issues.opened` events are handled correctly (the issue body is in a different field than comment/review body). Closes #9 Co-authored-by: Ondřej Mirtes <ondrejmirtes@users.noreply.github.com>
ondrejmirtes
left a comment
There was a problem hiding this comment.
@phpstan-bot Extract a meaningful prompt from this file and apply it to our org-wide workflow: https://github.com/anthropics/claude-code-action/blob/0cf5eeec4f908121edd03a81411b55485994f8d3/src/create-prompt/index.ts#L111
We're making changes based on issue comment to another repository in PHPStan organization.
|
Claude finished @ondrejmirtes's task in 5m 18s —— View job Extracted prompt from claude-code-action and applied to org-wide workflow
Analyzed the prompt template from Changes madeTrigger phrase stripping — The Structured prompt with key principles from claude-code-action:
|
Extract meaningful prompt structure from anthropics/claude-code-action's prompt template and apply it to the org-wide workflow: - Strip trigger phrase from comment body before passing to Claude - Add CLAUDE.md awareness (check and follow repo-specific instructions) - Add read-before-modify discipline - Add minimal/focused change guidelines (no over-engineering) - Add security awareness (no secrets, no force push) - Add structured PR creation instructions with descriptive messages Co-authored-by: Ondřej Mirtes <ondrejmirtes@users.noreply.github.com>
anthropics/claude-code-actionwith direct Claude CLI usage in the org-wide workflowissue.openedevent handling by addinggithub.event.issue.bodyto the fallback chainCloses #9
Generated with Claude Code