Skip to content

#14: Suppress own pushes from new-content detection#15

Merged
mrdon merged 1 commit into
mainfrom
mrdon/14-own-activity-resurface
Apr 8, 2026
Merged

#14: Suppress own pushes from new-content detection#15
mrdon merged 1 commit into
mainfrom
mrdon/14-own-activity-resurface

Conversation

@mrdon
Copy link
Copy Markdown
Contributor

@mrdon mrdon commented Apr 8, 2026

Summary

  • Add commits to the JSON fields fetched in ListOpenPRsMeta, ListMergedPRsMeta, and FetchPRMeta
  • Plumb LatestCommitAuthor through the PR struct via latestCommitAuthorFromRaw
  • In computeHasNewContent and updateIncrementalState, if the latest commit on the PR is by the current user, treat all hunk changes as already-seen — both for visibility (PR list) and for diff badges
  • Comments are still tracked independently, so a teammate's new comment after your push still surfaces the PR

Closes #14

Security implications of changes have been considered

- Add commits to PR list/view JSON fields
- Plumb LatestCommitAuthor through PR struct
- If latest commit is current user, treat new hunks
  as seen so own pushes don't resurface reviewed PRs

Closes #14
@mrdon mrdon force-pushed the mrdon/14-own-activity-resurface branch from fccd0c4 to 071610c Compare April 8, 2026 18:12
@mrdon mrdon merged commit 55bae3a into main Apr 8, 2026
2 of 3 checks passed
@mrdon mrdon deleted the mrdon/14-own-activity-resurface branch April 8, 2026 18:18
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.

Own commits/comments resurface merged PRs as new activity

1 participant