Repository navigation
mark-locked - New feature - #10084
Conversation
4adb150 to
3b74cc0
Compare
fregante
left a comment
There was a problem hiding this comment.
Solid PR! I just have a couple of nits
mark-locked-issues-in-lists - New featuremark-locked - New feature
| }); | ||
|
|
||
| const batchQuery = conversations.map(({key, owner, name, number}) => ` | ||
| ${key}: repository(owner: "${owner}", name: "${name}") { |
There was a problem hiding this comment.
Since the feature only supports repo lists, the repo query is always the same. So it should use this pattern instead:
refined-github/source/features/pinned-issues-update-time.tsx
Lines 17 to 27 in 22202af
| ${key}: repository(owner: "${owner}", name: "${name}") { | |
| repository() { |
This also means you can use getConversationNumber since you don't need owner/name anymore
There was a problem hiding this comment.
Updated to use a single repository() query. getConversationNumber() reads the current page URL, so it doesn’t give the individual conversation numbers on list pages. I’m extracting just the number from each row link instead. I also narrowed the feature to isRepoIssueOrPRList since the query now depends on the current repository.
|
There are a couple more native versions we could consider (center, right), but I think the current one is good enough for now.
|
|
@Mihir4921 thank you for the PR! Sorry for the many tweaks |




mark-pinnedbut for locked issues #9987Keeps GitHub's own state icon untouched and adds a smaller lock below it, so the row still shows issue vs PR and open/closed/merged/draft. This is the third option from the issue discussion.
The locked state comes from one batched GraphQL query per list, in the style of
conflict-marker, so it needs a token.Test URLs
Issues 134-136 and PRs 137-140 are locked, the other rows in these lists are not:
Only the issue list and the new PR list are supported, no legacy selectors.
Screenshot
Issue List
PR List