Skip to content

Commit a90410c

Browse files
committed
make the claude script more forgiving
1 parent 24f9bb7 commit a90410c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/claude.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
script: |
2424
try {
2525
// Get username - prioritize sender (the person who triggered the event)
26-
const username = github.event.sender?.login ||
27-
github.event.comment?.user?.login;
26+
const username = github.event?.sender?.login ||
27+
github.event?.comment?.user?.login;
2828
2929
if (!username) {
3030
console.log('Could not determine username from event payload');

0 commit comments

Comments
 (0)