- Notifications
You must be signed in to change notification settings - Fork673
feat(api): default to gitlab.com if no URL given#1278
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
great idea!
Uh oh!
There was an error while loading.Please reload this page.
codecov-io commentedFeb 4, 2021
Codecov Report
@@ Coverage Diff @@## master #1278 +/- ##======================================= Coverage 78.19% 78.19% ======================================= Files 12 12 Lines 2884 2885 +1 =======================================+ Hits 2255 2256 +1 Misses 629 629
Flags with carried forward coverage won't be shown.Click here to find out more.
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
JohnVillalovos commentedFeb 23, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If you do decide to make a breaking change I wonder if requiring kwargs would be a good idea?
And okay if people think it is a terrible idea 🙂 Just thought I would mention it. |
@JohnVillalovos Not sure what you mean by |
JohnVillalovos commentedFeb 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Sure. So by using the Allowed:
Not allowed:
It is a breaking change for sure to do that. |
@JohnVillalovos I'm not so sure. I'm not really a fan of this change. This would really break everything. |
JohnVillalovos commentedFeb 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
No worries. As a note you can put the
|
7bc388c
toedfb416
CompareBREAKING CHANGE: python-gitlab will now default to gitlab.comif no URL is given
I agree with Max I've seen a lot of use of this in tiny scripts, and there people probably want to use quick one-liners without kwargs just to instantiate |
@JohnVillalovos while resolving conflicts I consolidated the URL redirect warnings as I saw they were in 3 places, in case you'd like to have 1 final look, but this should also be ready now. |
The github CLI (
gh
) defaults to github.com if no arguments are given. Something similar would make sense here IMO, just for convenience :)