Comments (7)
The complete list of missing fields is
avatar_url
followers_url
following_url
gists_url
starred_url
subscriptions_url
organizations_url
repos_url
events_url
received_events_url
contributions
Unfortunately, contributions
doesn't make sense as an attribute intrinsic to a user account, unless it is explicitly related to the corresponding repo. So maybe this will have to be stored as Dict("JuliaLang/julia" => 716)
within the Owner
type in the example of the OP.
from github.jl.
Oh never mind, I see that contributions
is mapped to the value of the Dict that is output_of_ contributors[1][i]
.
from github.jl.
Yeah, I left out a good chunk of the *_url
fields from various types because most of that info can be naturally obtained/interacted with via the other API methods, but that was probably the wrong decision (also, it left some holes e.g. avatar_url
).
Feel free to open a PR with the fix you added.
from github.jl.
avatar_url is just https://avatars.githubusercontent.com/u/$(get(owner.id))
. I don't think we should represent these urls in the types, because we also hardcode them in the various accessor methods. I'd rather be consistent about than end up with a weird mix.
from github.jl.
I'd rather be consistent about than end up with a weird mix.
I'm still not opposed to this change (it's better to hew closer to GitHub's actual schema when possible), but this is a good point. We should add the URL fields for every GitHubType
s all at once to avoid confusion or not make the change at all.
cc @KristofferC, since you have a PR for part of this
from github.jl.
What I meant is that we hardcode paths e.g. here: https://github.com/JuliaWeb/GitHub.jl/blob/master/src/owners/owners.jl#L78
with this change, should we change that to
gh_get_paged_json(owner.orgs_url)
If so, that doesn't work with skinny objects any more. If not, then why do we want to expose those fields? We could compute them on-demand from the hardcoded strings.
from github.jl.
Not really since the API is field access?
from github.jl.
Related Issues (20)
- Missing support for self-hosted GitHub with API containing prefix. HOT 1
- Missing SSH url and clone url for repositories. HOT 1
- Include events end-point
- collaborators raises ERROR: map is not defined on dictionaries HOT 1
- TagBot trigger issue HOT 14
- "Must have admin rights" to delete a repo for which I have admin rights HOT 3
- can i call my github julia package in R/Python via restapi? HOT 2
- Add support for releases and uploading files to releases HOT 2
- `GitHub.contributors` gives 404 but REST API works fine HOT 2
- regex error in handle_comment HOT 9
- Tag Release HOT 2
- FR: Built-in function to iterate paginated results
- Add repository topic functions
- Catch-all `run` definition causes stack overflows
- Add organization invite functionality HOT 1
- Auth issues when using GitHub.jl with GitHub actions
- Remove handle_comment collaborator check
- Feature request: add tree field to Commit
- Error type HOT 1
- Make new release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github.jl.