Skip to content

GitHub suggestion blocks for one-click fix application #8

@haasonsaas

Description

@haasonsaas

Problem

When DiffScope posts review comments on PRs, it uses plain text comments. Every major competitor (CodeRabbit, Bito, Greptile, GitHub Copilot) now posts inline GitHub suggestion blocks that render an "Apply suggestion" button, letting developers accept fixes with one click.

This is consistently cited as the #1 developer experience gap in competitive reviews.

Proposed Solution

When posting inline PR comments that include a suggested fix, format the suggestion using GitHub's suggestion syntax:

```suggestion
fixed code here
```

This requires:

  1. Detecting when a review comment includes a code fix/suggestion
  2. Mapping the suggestion to the exact diff lines in the PR
  3. Formatting the GitHub comment body with the suggestion block syntax
  4. Handling multi-line suggestions correctly

Competitive Context

Tool One-click fix Implementation
CodeRabbit GitHub suggestion blocks + IDE apply
GitHub Copilot Agentic — spawns Copilot agent to apply
Bito GitHub suggestion blocks
Greptile GitHub suggestion blocks
Qodo Merge GitHub suggestion blocks
DiffScope Plain text comments only

Priority

Tier 1 — Table stakes. This is now expected by developers evaluating AI code review tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions