Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isConversation #38

Merged
merged 2 commits into from
Sep 21, 2020
Merged

Add isConversation #38

merged 2 commits into from
Sep 21, 2020

Conversation

yakov116
Copy link
Member

No description provided.

index.ts Outdated
@@ -325,6 +325,9 @@ collect.set('isRepoRoot', [
'https://github.com/sindresorhus/refined-github/tree/master?files=1',
]);

export const isConversation = (url: URL | Location = location): boolean => isIssue(url) || isPRConversation(url);
collect.set('isConversation', combinedTestOnly);

Copy link
Member

@fregante fregante Sep 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why in this specific spot? It's randomly between isRepo* tests. It should either be alphabetical or near a similar one (but alphabetical in this case)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I did it from my tablet :)

@fregante fregante merged commit 25e2e70 into refined-github:master Sep 21, 2020
@yakov116 yakov116 deleted the isConversation branch September 21, 2020 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants