Skip to content

Commit 846e3c0

Browse files
chloe41427[bot]marc0der
authored andcommitted
chore: add PR notifications to triage workflow
1 parent c1ddd8f commit 846e3c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/chloe-triage.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
types: [opened]
66
issue_comment:
77
types: [created]
8+
pull_request:
9+
types: [opened]
810

911
jobs:
1012
notify:
@@ -22,6 +24,10 @@ jobs:
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: |
@@ -30,6 +36,11 @@ jobs:
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}"

0 commit comments

Comments
 (0)