-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
g.extension: get branch from version #1700
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1d3e709
branch from version
ninsbl a4f3c8a
black
ninsbl 336daa7
address review, flake8
ninsbl 1b39a61
get branch from github API
ninsbl 6d73c2f
handle branch=None
ninsbl 45d80b8
handle branch=None better
ninsbl d221d31
black/flake8
ninsbl ca14583
cleanup after code review
ninsbl 59ab627
update from code review
ninsbl cdfa398
try orgs and users
ninsbl dd9d368
use repo API
ninsbl 7e479bc
pass propper API URL
46e483f
defaults for get_github_branches, fix l-flag, updates from code review
a7933c8
abandon github API due to rate limits
c906308
version over default
9a5829f
use URLError
290cd96
use urlparse
6853784
use urlparse
fab3787
use get_default_branch for gitlab
9bb3b87
fix keyword issue with urlopen
866d18f
global GIT_URL, get_default update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Having this part here (and not e.g. in a separate, possibly nested function and called only when needed), prohibits general URLs to be used here (just to get
main
). I'm not sure how relevant that is, though.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 function is only meant for known hosting services (currently: github, gitlab, bitbucket), so, this should not be an issue...
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.
I was thinking the
main
would be used as a the default for any other service, but in that case, use likely needs to (and can) specify branch explicitly anyway.