When a workflow is cancelled, the comment now shows "Claude's task was cancelled"
instead of the generic "Claude encountered an error" message. This provides clearer
feedback to users about why the workflow stopped.
Changes:
- Add CLAUDE_CANCELLED environment variable using cancelled() function in action.yml
- Implement cancellation detection logic in update-comment-link.ts
- Update comment-logic.ts to show specific cancellation message
- Add comprehensive tests for cancellation handling
Fixes#123
Co-authored-by: ashwin-ant <ashwin-ant@users.noreply.github.com>
- Changed CLAUDE_SUCCESS check from !== "false" to === "true" for more explicit handling
- This ensures undefined or empty values are treated as failures
- Moved status check before output file parsing to ensure consistent behavior
- Added comprehensive tests for various workflow status scenarios
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>