mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-07-27 22:38:30 +08:00
`??` has lower precedence than `!==`, so the expression: triggerDisplayName ?? triggerUsername !== "Unknown" parses as: triggerDisplayName ?? (triggerUsername !== "Unknown") When triggerDisplayName is an empty string "", the condition evaluates to "" (falsy), incorrectly skipping the co-author line even though the user is not "Unknown". Add parentheses to get the intended behavior: (triggerDisplayName ?? triggerUsername) !== "Unknown" Co-authored-by: Rush <rush@RushdeMacBook-Pro.local>