diff --git a/.gitea/workflows/claude.yml b/.gitea/workflows/claude.yml index 3c61009..dc89eee 100644 --- a/.gitea/workflows/claude.yml +++ b/.gitea/workflows/claude.yml @@ -58,6 +58,11 @@ jobs: -d "{\"body\": \"Claude is working on this issue...\"}" # Build the prompt + PROMPT=$(cat <<'PROMPT_EOF' + You are working on a code repository. A Gitea issue needs your attention. + PROMPT_EOF + ) + PROMPT="You are working on the repository ${REPO}. A Gitea issue needs your attention: @@ -74,12 +79,12 @@ jobs: You are on branch ${BRANCH}. Work in the current directory." - # Run Claude Code + # Run Claude Code in non-interactive mode claude -p "${PROMPT}" \ --allowedTools "Bash,Read,Edit,Write,Glob,Grep" \ - --mcp-config /etc/claude/mcp-gitea.json \ + --mcp-config /home/claude-runner/.claude/mcp-gitea.json \ --max-turns 50 \ - --dangerously-skip-permissions \ + --permission-mode bypassPermissions \ --output-format text > /tmp/claude-output.txt 2>&1 || true echo "=== Claude Output ==="