Commit Graph
5 Commits
  • ci(claude-bot): tune models, Copilot-style PR review, issue research mode
    - handle-issue: use Sonnet 4.6 and raise max-turns 150 to 250
    
    - handle-pr: use Opus 4.8; rewrite review as inline comments stating the problem plus a suggestion block, posted as one COMMENT review
    
    - mention: use Opus 4.8; on issues do research only (never commit) with full comment/history context and feature-request feasibility analysis; PR commit-on-request behavior unchanged
    
    - reformat the mention append-system-prompt into a readable multi-line block (verified it still parses as a single CLI argument)
  • feat(ci): let mention bot push commits to fork PR branches
    claude-code-action checks out the PR head branch and pushes Claude's
    commits with `git push origin ...`. For PRs opened from a fork the head
    branch lives on the contributor's repo, and the workflow GITHUB_TOKEN
    cannot push there, so commits ended up as a stray branch on this repo
    and never landed on the PR.
    
    Redirect origin's push URL to the PR head repository (the fork for fork
    PRs, this repo otherwise) using a PAT secret (CLAUDE_BOT_PAT) that has
    push access; fetches still come from origin. persist-credentials is
    disabled so the PAT in the push URL is used instead of the GITHUB_TOKEN
    auth header. Requires the fork PR to have "Allow edits by maintainers"
    enabled.
  • feat(ci): add PR review job and commit-capable mention bot
    Rename claude-issue-bot.yml to claude-bot.yml and broaden it beyond
    issues:
    
    - handle-pr: review pull requests on open (read diff, label, post one
      grounded review comment); review-only, no code changes.
    - mention: allow committing. Add Edit/Write and git tools, contents:
      write, and instruct it to make the smallest correct change and commit
      to the current branch only on an explicit code-change request. Kept
      default user gating (no allowed_non_write_users) so only write-access
      users can trigger commits.
    - Refresh the repository map (add internal/eventbus and the
      service/email subpackage) across all three prompts.
    - Raise max-turns.
    @