Skip to content

Commit 7936a2e

Browse files
ci: add Chloé issue triage workflow
Co-authored-by: sdkman-chloe[bot] <263185818+sdkman-chloe[bot]@users.noreply.github.com>
1 parent 7fd92f2 commit 7936a2e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/chloe-triage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Notify Chloé (Issue Triage)
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send to OpenClaw
12+
env:
13+
ISSUE_TITLE: ${{ github.event.issue.title }}
14+
ISSUE_BODY: ${{ github.event.issue.body }}
15+
ISSUE_USER: ${{ github.event.issue.user.login }}
16+
ISSUE_URL: ${{ github.event.issue.html_url }}
17+
ISSUE_NUMBER: ${{ github.event.issue.number }}
18+
REPO: ${{ github.repository }}
19+
run: |
20+
MSG="New issue in ${REPO} — #${ISSUE_NUMBER}: ${ISSUE_TITLE}"
21+
MSG+=$'\nAuthor: '"${ISSUE_USER}"
22+
MSG+=$'\nURL: '"${ISSUE_URL}"
23+
MSG+=$'\n\n'"${ISSUE_BODY}"
24+
PAYLOAD=$(jq -n --arg msg "$MSG" --arg name "GitHub Issues" \
25+
'{message: $msg, name: $name, deliver: true, channel: "discord", to: "user:918237603617206303"}')
26+
curl -sf -X POST \
27+
-H "Authorization: Bearer ${{ secrets.OPENCLAW_HOOK_TOKEN }}" \
28+
-H "Content-Type: application/json" \
29+
-d "$PAYLOAD" \
30+
${{ secrets.OPENCLAW_HOOK_URL }}

0 commit comments

Comments
 (0)