Skip to content

Commit 1c8bfb2

Browse files
committed
Fix the diffbot trigger to read issue/comment body
1 parent 523913d commit 1c8bfb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/diffBot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
uses: actions/github-script@v6
2020
with:
2121
script: |
22-
const commentBody = context.payload.comment.body;
22+
const commentBody = context.payload.issue?.body || context.payload.comment?.body || "";
23+
# const commentBody = context.payload.comment.body;
2324
const regexScreenshot = /@diff\s+(\S+)\s+(\S+)/; // Match URL + screenshot flag
2425
const regexArtifact = /@diff\s+(\S+)/; // Match only URL
2526

0 commit comments

Comments
 (0)