File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 55 types : [opened]
66 issue_comment :
77 types : [created]
8+ pull_request :
9+ types : [opened]
810
911jobs :
1012 notify :
2224 ISSUE_BODY : ${{ github.event.issue.body }}
2325 COMMENT_BODY : ${{ github.event.comment.body }}
2426 COMMENT_URL : ${{ github.event.comment.html_url }}
27+ PR_NUMBER : ${{ github.event.pull_request.number }}
28+ PR_TITLE : ${{ github.event.pull_request.title }}
29+ PR_URL : ${{ github.event.pull_request.html_url }}
30+ PR_BODY : ${{ github.event.pull_request.body }}
2531 HOOK_URL : ${{ secrets.OPENCLAW_HOOK_URL }}
2632 HOOK_TOKEN : ${{ secrets.OPENCLAW_HOOK_TOKEN }}
2733 run : |
3036 MSG+=$'\nAuthor: '"${SENDER}"
3137 MSG+=$'\nURL: '"${ISSUE_URL}"
3238 MSG+=$'\n\n'"${ISSUE_BODY}"
39+ elif [ "$EVENT_NAME" = "pull_request" ]; then
40+ MSG="New PR in ${REPO} — #${PR_NUMBER}: ${PR_TITLE}"
41+ MSG+=$'\nAuthor: '"${SENDER}"
42+ MSG+=$'\nURL: '"${PR_URL}"
43+ MSG+=$'\n\n'"${PR_BODY}"
3344 else
3445 MSG="New comment on ${REPO} — #${ISSUE_NUMBER}: ${ISSUE_TITLE}"
3546 MSG+=$'\nFrom: '"${SENDER}"
You can’t perform that action at this time.
0 commit comments