From 75ab39ca3a299fb7a85a2215ef0081a390c45d98 Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Tue, 12 May 2026 13:48:50 -0700 Subject: [PATCH] feat(ci): add mandate override to brain workflow --- .github/workflows/gemini-cli-bot-brain.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gemini-cli-bot-brain.yml b/.github/workflows/gemini-cli-bot-brain.yml index 4c11682007..442c5f5e58 100644 --- a/.github/workflows/gemini-cli-bot-brain.yml +++ b/.github/workflows/gemini-cli-bot-brain.yml @@ -28,6 +28,15 @@ on: description: 'Enable PRs (automatically promote changes to PRs)' type: 'boolean' default: true + mandate: + description: 'Mandate to execute' + type: 'choice' + options: + - auto + - issue-fixer + - metrics + - interactive + default: auto concurrency: group: '${{ github.workflow }}-${{ github.event.issue.number || github.event.inputs.issue_number || github.ref }}' @@ -132,7 +141,16 @@ jobs: PROMPT_FILE="tools/gemini-cli-bot/brain/scheduled.md" MANDATE="Your specific mandate for this run: Implement surgical fixes for repository issues (issue-fixer skill)." - if [ "${{ github.event_name }}" = "issue_comment" ] || [ "${{ github.event.inputs.run_interactive }}" = "true" ]; then + MANDATE_INPUT="${{ github.event.inputs.mandate || 'auto' }}" + + if [ "$MANDATE_INPUT" = "issue-fixer" ]; then + MANDATE="Your specific mandate for this run: Implement surgical fixes for repository issues (issue-fixer skill)." + elif [ "$MANDATE_INPUT" = "metrics" ]; then + MANDATE="Your specific mandate for this run: Analyze repository metrics to identify bottlenecks and self-evolve (metrics skill)." + elif [ "$MANDATE_INPUT" = "interactive" ]; then + PROMPT_FILE="tools/gemini-cli-bot/brain/interactive.md" + MANDATE="Your specific mandate for this run: Respond to the user request in ." + elif [ "${{ github.event_name }}" = "issue_comment" ] || [ "${{ github.event.inputs.run_interactive }}" = "true" ]; then PROMPT_FILE="tools/gemini-cli-bot/brain/interactive.md" MANDATE="Your specific mandate for this run: Respond to the user request in ." elif [ "${{ github.event.schedule }}" = "0 0 * * *" ]; then