feat(api): default to gitlab.com if no URL given by nejch · Pull Request #1278 · python-gitlab/python-gitlab
Repository navigation
feat(api): default to gitlab.com if no URL given - #1278
Merged
JohnVillalovos merged 1 commit into master from feat/default-url Sep 8, 2021
Merged
feat(api): default to gitlab.com if no URL given #1278 JohnVillalovos merged 1 commit into master from feat/default-url
Conversation
nejch commented Jan 31, 2021
Copy link Copy Markdown
Member
The github CLI (gh) defaults to github.com if no arguments are given. Something similar would make sense here IMO, just for convenience :)
View reviewed changes
bufferoverflow left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
great idea!
nejch commented Feb 4, 2021View reviewed changes
nejch force-pushed the feat/default-url branch from
019c2d9 to
2edd69c
Compare
February 4, 2021 21:55
codecov-io commented Feb 4, 2021
Copy link Copy Markdown
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 .
|
View reviewed changes
max-wittig assigned nejch Feb 6, 2021 nejch requested a review from max-wittig February 7, 2021 11:48
JohnVillalovos commented Feb 23, 2021 · edited Loading
Copy link Copy Markdown
Member
|
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. |
max-wittig commented Feb 26, 2021
Copy link Copy Markdown
Member
|
@JohnVillalovos Not sure what you mean by |
JohnVillalovos commented Feb 26, 2021 · edited Loading
Copy link Copy Markdown
Member
Sure. So by using the Allowed:
Not allowed:
It is a breaking change for sure to do that. |
max-wittig commented Feb 26, 2021
Copy link Copy Markdown
Member
|
@JohnVillalovos I'm not so sure. I'm not really a fan of this change. This would really break everything. |
JohnVillalovos commented Feb 26, 2021 · edited Loading
Copy link Copy Markdown
Member
No worries. As a note you can put the
|
7bc388c to
edfb416
Compare
September 8, 2021 20:22
feat: default to gitlab.com if no URL given
8677756
BREAKING CHANGE: python-gitlab will now default to gitlab.com if no URL is givennejch force-pushed the feat/default-url branch from
edfb416 to
8677756
Compare
September 8, 2021 20:32
nejch commented Sep 8, 2021
Copy link Copy Markdown
Member
Author
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 |
nejch commented Sep 8, 2021
Copy link Copy Markdown
Member
Author
|
@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. |
View reviewed changes
JohnVillalovos merged commit
8236281
into
master
Sep 8, 2021
JohnVillalovos
deleted the
feat/default-url
branch
September 8, 2021 20:45
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment