Skip to content

Commit

Permalink
Include isMilestone in isConversationList
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 22, 2020
1 parent 59527fa commit 301d8a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ collect.set('isIssue', [
'https://github.com/sindresorhus/refined-github/issues/146',
]);

export const isConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean => isGlobalConversationList(url) || isRepoConversationList(url);
export const isConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean =>
isGlobalConversationList(url) ||
isRepoConversationList(url) ||
isMilestone(url);
collect.set('isConversationList', combinedTestOnly);

export const isConversation = (url: URL | HTMLAnchorElement | Location = location): boolean => isIssue(url) || isPRConversation(url);
Expand Down

0 comments on commit 301d8a3

Please sign in to comment.