-
-
Notifications
You must be signed in to change notification settings - Fork 27
Add isForkingRepo
#209
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 isForkingRepo
#209
Conversation
Do you know how to release this package after merging this PR? You can type "minor" in the version field |
@fregante I think I know. |
@fregante You should help me to clean the lateset version https://www.npmjs.com/package/github-url-detection I messed the steps. Now I konw how to do it. 😢 |
What do you mean by clean? |
@@ -567,6 +567,11 @@ TEST: addTests('isRepoNetworkGraph', [ | |||
|
|||
export const isForkedRepo = (): boolean => exists('meta[name="octolytics-dimension-repository_is_fork"][content="true"]'); | |||
|
|||
export const isFork = (url: URL | HTMLAnchorElement | Location = location): boolean => getRepo(url)?.path === 'fork'; | |||
TEST: addTests('isFork', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be isForkingRepo.
isFork is ambiguous. New PR, then you can release a new "patch" version afterwards
I think you pushed the tags directly to the repo from your computer and the CI failed? No need to do that, just type "patch" in the version field and the workflow does it all |
Yeah. Let's go to v10.2.1. |
For: refined-github/refined-github#8388