-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Support for gitlab subgroups and self-hosted instances #28
Changes from 5 commits
44bb3eb
97b2d2d
0644dce
de9be14
b75c397
4e02a76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,13 @@ const TEST_DATA = [ | |
remote: '[email protected]:user/repo.git', | ||
expected: remotes.gitlab | ||
}, | ||
{ | ||
remote: 'https://gitlab.com/user/repo#subgroup.git', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see something like https://gitlab.com/user/repo/subgroup.git in our subgroup project. Are you sure that this is correct form? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Real examples are There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok good to know. I'll update the tests. I was only using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you need some other urls to test just let me know 😉 |
||
expected: { | ||
hostname: 'gitlab.com', | ||
url: 'https://gitlab.com/user/repo/subgroup' | ||
} | ||
}, | ||
{ | ||
remote: 'https://bitbucket.org/user/repo', | ||
expected: remotes.bitbucket | ||
|
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.
@a-ignatov-parc is this a valid/realistic URL for a subgroup merge request? I've updated the test, but I've never used gitlab subgroups. I want to keep the tests close to what is likely in the wild.
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.
Yes. Here is a real link:
https://gitlab.rambler.ru/unity/sites/wmj/merge_requests/193
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.
Btw thank for helping 😉