Skip to content

Commit 868ca12

Browse files
authored
sync(ci): update workflows and mage-x to v1.10.3 (#75)
1 parent ce5a767 commit 868ca12

File tree

11 files changed

+796
-2349
lines changed

11 files changed

+796
-2349
lines changed

.github/.env.base

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,6 @@ TEST_TIMEOUT_RACE_COVER=30m # Timeout for tests with race+coverage (m
137137
TEST_TIMEOUT_UNIT=20m # Timeout for unit tests only
138138
TEST_TIMEOUT_FUZZ=5m # Timeout for fuzz tests
139139

140-
# ================================================================================================
141-
# 📡 GO-BROADCAST CONFIGURATION
142-
# ================================================================================================
143-
144-
# Automerge Labels Configuration
145-
# When using --automerge flag, these labels will be added to created PRs
146-
# Comma-separated list of labels to apply for automatic merging
147-
GO_BROADCAST_AUTOMERGE_LABELS=automerge
148-
149140
# ================================================================================================
150141
# 📊 GO-COVERAGE SYSTEM CONFIGURATION
151142
# ================================================================================================
@@ -244,8 +235,9 @@ REDIS_CACHE_FORCE_PULL=false # Force pull Redis images even when cache
244235
# 🪄 MAGE-X CONFIGURATION
245236
# ================================================================================================
246237

247-
MAGE_X_VERSION=v1.8.14 # https://github.com/mrz1836/mage-x/releases
238+
MAGE_X_VERSION=v1.10.3 # https://github.com/mrz1836/mage-x/releases
248239
MAGE_X_USE_LOCAL=false # Use local version for development
240+
MAGE_X_CI_SKIP_STEP_SUMMARY=true # Skip duplicate test results in step summary (already in test validation summary)
249241
MAGE_X_AUTO_DISCOVER_BUILD_TAGS=true # Enable auto-discovery of build tags
250242
MAGE_X_AUTO_DISCOVER_BUILD_TAGS_EXCLUDE=race,custom # Comma-separated list of tags to exclude
251243
MAGE_X_FORMAT_EXCLUDE_PATHS=vendor,node_modules,.git,.idea # Format exclusion paths (comma-separated directories to exclude from formatting)
@@ -284,7 +276,7 @@ MAGE_X_YAMLFMT_VERSION=v0.20.0 # https://github.c
284276
# MAGE_X_DOWNLOAD_TIMEOUT=5000
285277
# MAGE_X_DOWNLOAD_USER_AGENT=MAGE-X-Agent
286278
# MAGE_X_PARALLEL=3
287-
# MAGE_X_TEST_EXCLUDE_MODULES=module1,module2
279+
# MAGE_X_TEST_EXCLUDE_MODULES=module1,module2
288280
# MAGE_X_TEST_RACE=false
289281
# MAGE_X_VERBOSE=true
290282

@@ -458,3 +450,53 @@ PR_MANAGEMENT_SIZE_XS_THRESHOLD=10
458450
PR_MANAGEMENT_SIZE_S_THRESHOLD=50
459451
PR_MANAGEMENT_SIZE_M_THRESHOLD=200
460452
PR_MANAGEMENT_SIZE_L_THRESHOLD=500
453+
454+
# ================================================================================================
455+
# 📡 GO-BROADCAST CONFIGURATION & AI-POWERED TEXT GENERATION
456+
# ================================================================================================
457+
458+
# Automerge Labels Configuration
459+
# When using --automerge flag, these labels will be added to created PRs
460+
# Comma-separated list of labels to apply for automatic merging
461+
GO_BROADCAST_AUTOMERGE_LABELS=automerge
462+
463+
# AI generates intelligent PR descriptions and commit messages based on diff analysis.
464+
# Disabled by default. All AI failures fall back to static templates silently.
465+
# Uses Google Genkit SDK with support for Anthropic, OpenAI, and Google providers.
466+
467+
# Master switch - enables AI infrastructure (disabled by default)
468+
GO_BROADCAST_AI_ENABLED=false
469+
470+
# Granular controls (default to GO_BROADCAST_AI_ENABLED value)
471+
GO_BROADCAST_AI_PR_ENABLED= # Enable AI for PR body generation
472+
GO_BROADCAST_AI_COMMIT_ENABLED= # Enable AI for commit message generation
473+
474+
# Provider: anthropic, openai, google
475+
GO_BROADCAST_AI_PROVIDER=anthropic
476+
477+
# API key (or use provider-specific: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY)
478+
# DO NOT USE THIS IN PUBLIC REPOSITORIES, USE ENVIRONMENT SECRETS INSTEAD
479+
# GO_BROADCAST_AI_API_KEY=
480+
481+
# Model override (uses provider defaults if empty)
482+
# anthropic: claude-sonnet-4-5-20250929 | openai: gpt-5.2 | google: gemini-3-pro-preview
483+
GO_BROADCAST_AI_MODEL=
484+
485+
# Generation parameters
486+
GO_BROADCAST_AI_MAX_TOKENS=2000
487+
GO_BROADCAST_AI_TIMEOUT=30
488+
GO_BROADCAST_AI_TEMPERATURE=0.3
489+
490+
# Diff truncation (prevents token limit issues)
491+
GO_BROADCAST_AI_DIFF_MAX_CHARS=4000
492+
GO_BROADCAST_AI_DIFF_MAX_LINES_PER_FILE=50
493+
494+
# Response caching (reduces API calls for identical diffs across repos)
495+
GO_BROADCAST_AI_CACHE_ENABLED=true
496+
GO_BROADCAST_AI_CACHE_TTL=3600
497+
GO_BROADCAST_AI_CACHE_MAX_SIZE=1000
498+
499+
# Retry settings (handles transient failures)
500+
GO_BROADCAST_AI_RETRY_MAX_ATTEMPTS=3
501+
GO_BROADCAST_AI_RETRY_INITIAL_DELAY=1
502+
GO_BROADCAST_AI_RETRY_MAX_DELAY=10

0 commit comments

Comments
 (0)