Skip to content

Conversation

@hermannakos
Copy link
Collaborator

Summary

Enable inline comment support for Claude Code PR reviews by configuring the GitHub MCP tools and updating permissions.

Changes

  • Updated claude_args to use GitHub MCP tools instead of bash gh commands:
    • mcp__github__create_pending_pull_request_review
    • mcp__github__add_comment_to_pending_review
    • mcp__github__submit_pending_pull_request_review
    • mcp__github__get_pull_request_diff
  • Changed pull-requests permission from read to write to enable review submissions
  • Updated prompt to instruct Claude to use the GitHub review system for inline feedback
  • Added explicit instructions to submit reviews as non-blocking 'COMMENT' type

Benefits

  • Claude can now add inline comments directly on specific lines of code
  • More precise and actionable feedback on PRs
  • Better developer experience with contextual code review comments

References

Based on: anthropics/claude-code-action#60

🤖 Generated with Claude Code

- Update claude_args to use GitHub MCP tools for inline reviews
- Add permissions for pull-requests: write to enable review submissions
- Update prompt to instruct Claude to use GitHub review system
- Configure tools: create_pending_pull_request_review, add_comment_to_pending_review, submit_pending_pull_request_review, get_pull_request_diff

This allows Claude to add inline comments directly on specific lines of code rather than posting a single summary comment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions
Copy link

📊 Code Coverage Report

✅ Student

  • PR Coverage: 44.08%
  • Master Coverage: 44.08%
  • Delta: +0.00%

✅ Teacher

  • PR Coverage: 25.60%
  • Master Coverage: 25.60%
  • Delta: +0.00%

⚠️ Pandautils

  • PR Coverage: 22.50%
  • Master Coverage: 22.50%
  • Delta: -0.00%

📈 Overall Average

  • PR Coverage: 30.73%
  • Master Coverage: 30.73%
  • Delta: -0.00%

@hermannakos hermannakos merged commit c56ae2a into master Oct 27, 2025
4 of 5 checks passed
@hermannakos hermannakos deleted the finetune-claude-review branch October 27, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants