Skip to content

Add support for watcher annotations in the Files tab#248

Open
kroeschl wants to merge 2 commits into
alejandro5042:masterfrom
kroeschl:watchers-annotation
Open

Add support for watcher annotations in the Files tab#248
kroeschl wants to merge 2 commits into
alejandro5042:masterfrom
kroeschl:watchers-annotation

Conversation

@kroeschl
Copy link
Copy Markdown
Contributor

@kroeschl kroeschl commented May 20, 2026

Justification

I was looking at the the Files tab on a PR recently to see why I'd been added to the PR by our owners tooling, and didn't see any annotated files. The Duties tab showed that I'm a watch for one file, but it was annotated as expect. That's because the Owners-Watcher role didn't exist (I think) when owner, alternate, and reviewer/expert file annotations were added in this script.
image

Implementation

Using the implementation for expert/reviewer as an example, add watcher annotations.

Testing

Tested against the same PR, and I now see the annotation. Note that the annotation and expander overlap is an existing issue with all Files annotations that I'm not addressing in this PR.
image
Also verified that the notification content renders as expected.

@kroeschl kroeschl marked this pull request as ready for review May 20, 2026 18:45
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.

1 participant