Optional: publish validated findings as inline PR review comments #35

Open
opened 2026-10-10 18:01:56 +01:00 by nimmo · 0 comments
Owner

Purpose

Track the remaining inline-comment enhancement separated from #19. Dedicated-account formal review publication is already implemented; inline annotations are optional follow-up work and do not block the v1 completion checklist in #1.

Scope

  • Add inline comments only for validated findings with precise changed-file and diff-line evidence.
  • Map findings to the reviewed head commit and Forgejo's supported diff coordinates.
  • Keep findings without a valid location in the structured review body; never invent a line anchor.
  • Preserve trusted configuration, fork protections, dedicated publishing identity, and existing approval/request-changes authority rules.
  • Define how repeated findings and outdated anchors are handled across commit-linked reviews.
  • Confirm deployed Forgejo API behaviour before choosing creation/update semantics.

Acceptance

  • Mocked API tests cover valid anchors, invalid/out-of-diff locations, changed heads, and repeated runs.
  • A live test confirms annotations appear on the intended changed lines.
  • Annotation failures cannot produce a misleading clean review or silently lose findings.
  • Documentation explains annotation behaviour and review history.

Provenance

Split from #19 after reviewing main at db44a09074b5fc3af2d58fb70aa1c7b0f9977981 on 2026-10-10. The earlier requirement to prohibit automated approval was superseded by explicitly configured formal decision authority in #27. This enhancement does not change that authority.

## Purpose Track the remaining inline-comment enhancement separated from #19. Dedicated-account formal review publication is already implemented; inline annotations are optional follow-up work and do not block the v1 completion checklist in #1. ## Scope - Add inline comments only for validated findings with precise changed-file and diff-line evidence. - Map findings to the reviewed head commit and Forgejo's supported diff coordinates. - Keep findings without a valid location in the structured review body; never invent a line anchor. - Preserve trusted configuration, fork protections, dedicated publishing identity, and existing approval/request-changes authority rules. - Define how repeated findings and outdated anchors are handled across commit-linked reviews. - Confirm deployed Forgejo API behaviour before choosing creation/update semantics. ## Acceptance - Mocked API tests cover valid anchors, invalid/out-of-diff locations, changed heads, and repeated runs. - A live test confirms annotations appear on the intended changed lines. - Annotation failures cannot produce a misleading clean review or silently lose findings. - Documentation explains annotation behaviour and review history. ## Provenance Split from #19 after reviewing main at `db44a09074b5fc3af2d58fb70aa1c7b0f9977981` on 2026-10-10. The earlier requirement to prohibit automated approval was superseded by explicitly configured formal decision authority in #27. This enhancement does not change that authority.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/forgejo-auto-pr-review#35
No description provided.