Commit Graph

5 Commits

Author SHA1 Message Date
MHSanaei b11c51e736 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)
2026-06-23 00:43:14 +02:00
MHSanaei d20b549b04 fix(ci): use pull_request_target so claude bot gets secrets on fork PRs 2026-06-21 17:25:23 +02:00
MHSanaei 29b14dac59 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.
2026-06-20 23:41:45 +02:00
MHSanaei 4ab2dffa61 fix(ci): check out PR branch for mention bot so commits land on the PR 2026-06-20 23:12:15 +02:00
MHSanaei caf80009c8 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.
@
2026-06-20 22:56:17 +02:00