chore: session auto-commit
This commit is contained in:
@@ -25,6 +25,23 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Type check
|
||||||
|
run: bun run typecheck
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: bun test
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: bun run lint
|
||||||
|
|
||||||
- name: Set lowercase image name
|
- name: Set lowercase image name
|
||||||
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> "$GITHUB_ENV"
|
run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export async function handleInteraction(
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Normalize Zod validation errors to our ValidationError type
|
// Normalize Zod validation errors to our ValidationError type
|
||||||
const normalized = error instanceof z.ZodError
|
const normalized = error instanceof z.ZodError
|
||||||
? new ValidationError(error.errors.map(e => e.message).join("; "))
|
? new ValidationError(error.issues.map(e => e.message).join("; "))
|
||||||
: error;
|
: error;
|
||||||
logger.warn("Booster-role command failed", { error: normalized instanceof Error ? normalized.message : String(normalized) });
|
logger.warn("Booster-role command failed", { error: normalized instanceof Error ? normalized.message : String(normalized) });
|
||||||
// If already deferred, edit the reply instead of replying anew
|
// If already deferred, edit the reply instead of replying anew
|
||||||
|
|||||||
Reference in New Issue
Block a user