ci: add Chloé issue triage workflow (#1498)

Co-authored-by: sdkman-chloe[bot] <263185818+sdkman-chloe[bot]@users.noreply.github.com>
This commit is contained in:
sdkman-chloe[bot]
2026-02-28 17:35:08 +00:00
committed by GitHub
parent bb56144b29
commit 10da58e716

39
.github/workflows/chloe-triage.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Notify Chloé (Issue Triage)
on:
issues:
types: [opened]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send to OpenClaw
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_USER: ${{ github.event.issue.user.login }}
ISSUE_URL: ${{ github.event.issue.html_url }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
PAYLOAD=$(jq -n \
--arg msg "New issue in ${REPO} — #${ISSUE_NUMBER}: ${ISSUE_TITLE}
Author: ${ISSUE_USER}
URL: ${ISSUE_URL}
${ISSUE_BODY}" \
--arg name "GitHub Issues" \
'{
message: $msg,
name: $name,
deliver: true,
channel: "discord",
to: "channel:1477282395249053697"
}')
curl -sf -X POST \
-H "Authorization: Bearer ${{ secrets.OPENCLAW_HOOK_TOKEN }}" \
-H "Content-Type: application/json" \
-d "$PAYLOAD" \
${{ secrets.OPENCLAW_HOOK_URL }}