docs(publish-skill): pin Jobdori bot ID in Discord release commands

Pass explicit --bot flag with JOBDORI_BOT_ID so release announcements
always go out as the Jobdori bot regardless of local agent-discordbot
current-bot state.
This commit is contained in:
YeonGyu-Kim
2026-05-26 14:28:22 +09:00
parent 91aa9154b2
commit 9810bad3e5
+7 -4
View File
@@ -297,14 +297,16 @@ Never skip this step because the release summary was awaiting approval. If the u
</hard-gate>
<agent-discord-instruction>
1. Use the Jobdori bot token through `agent-discordbot` for release announcements. This is the required release path; do not use the personal `agent-discord` token unless the bot path is unavailable and the user explicitly approves the fallback.
1. Use the Jobdori bot token through `agent-discordbot` for release announcements. This is the required release path; do not use the personal `agent-discord` token unless the bot path is unavailable and the user explicitly approves the fallback. Pin the bot id so release messages go out as the Jobdori bot even if the local `agent-discordbot` current bot changes.
```bash
agent-discordbot auth status
JOBDORI_BOT_ID=1486173823354146917
agent-discordbot auth status --bot "$JOBDORI_BOT_ID"
```
2. **Read recent messages** in the channel to match the existing announcement style:
```bash
agent-discordbot message list 1454708427392680067 --limit 5
JOBDORI_BOT_ID=1486173823354146917
agent-discordbot message list 1454708427392680067 --bot "$JOBDORI_BOT_ID" --limit 5
```
3. If `agent-discordbot` is unavailable or unauthorized, stop and report that the Jobdori token path failed. Only then may a human decide whether to use `agent-discord`.
@@ -330,8 +332,9 @@ Plus {summary of remaining changes}.
```
```bash
JOBDORI_BOT_ID=1486173823354146917
RELEASE_URL=$(gh release view "v${NEW_VERSION}" --json url --jq '.url')
agent-discordbot message send 1454708427392680067 "{your message following the style above}"
agent-discordbot message send 1454708427392680067 "{your message following the style above}" --bot "$JOBDORI_BOT_ID"
```
If the message fails to send, warn the user and continue — do NOT block the publish workflow on Discord errors.