Handle archived PRs

Author: freganteCreated Jul 20, 2026Updated Sep 29, 2026
Labelsenhancementacceptedunder discussion

There's a new state for PRs: archived.

Archived PRs are closed, locked and turned into a 404 for everyone except organization members.

Test URL

I don't know what "handling" them means for the whole extension. So far I have:

  • add isArchivedPR to github-url-detection
  • don't show locked-issue on archived PRs since it's redundant
  • include in the selectors for "PRs" in select-notifications

But there's definitely more issues and possible changes.

One thing to keep in mind is that if you see the PR you're not affected by its restrictions (you can comment, etc)

Screenshots

Image Image

Sidebar

Also note that there's no "lock this conversation", which we're probably using somewhere to detect "user is moderator" (but we might have already moved that check to the API, I don't remember)

Image

Notifications

Image

Source: refined-github/refined-github