Skip to content

🐛 ADR Enforcer creates new comment on every review instead of updating in-place #208

@sodre

Description

@sodre

Summary

The Claude ADR Enforcer GitHub workflow creates a new comment for every PR synchronize event instead of updating the existing comment in-place. This leads to comment spam on PRs with multiple commits.

Current Behavior

Each time a PR is updated (synchronize event), the workflow posts a new comment with ADR review results.

Expected Behavior

  1. Summary comments: Should find and update an existing bot comment (identified by a marker like <!-- adr-enforcer -->) rather than creating a new one
  2. Inline review comments: Need to investigate whether these can be updated or if a new review submission is required by the GitHub API

Investigation Needed

  • Check GitHub API for updating PR review comments vs creating new reviews
  • Determine if inline comments can be updated or must be resubmitted
  • Look at how other bots (codecov, dependabot) handle this pattern

Acceptance Criteria

  • Summary comment is updated in-place on subsequent runs
  • No duplicate comments from the enforcer on a single PR
  • Inline review behavior is documented (update vs new review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciCI/CD workflows

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions