Comments (11)
Ah, I see ghuser-io/ghuser.io#22 already sort of covers this for the end-user of ghuser .
from github-contribs.
from github-contribs.
Interesting ... coala/gh-board
turned up in @li-boxuan 's data, so GitHub's rules are not so clear as they seem.
(Ah, that may have been doing to PRs and issues, not commits , ...)
from github-contribs.
Confirming @wikimedia problem...
Here is some merged commits by a GSoC student for this year
which are these two sets of commits that are not appearing in the results
- https://github.com/wikimedia/mediawiki/commits?author=strayblues
- https://github.com/wikimedia/operations-mediawiki-config/commits?author=strayblues
@li-boxuan has kindly provided me with the following GraphQL which can be used (e.g. with https://developer.github.com/v4/explorer/ ) to find the repos someone has contributed to
query($login: String!, $before: String){
user(login:$login) {
repositoriesContributedTo(last: 100, before: $before, includeUserRepositories: true) {
pageInfo {
startCursor
hasPreviousPage
}
nodes {
owner {
login
}
name
}
}
}
}
(graphql updated to include user's own repositories)
from github-contribs.
Wow, thanks a lot @jayvdb for the thorough analysis!
1. Criteria for contributions
Actually I'm fine with these criteria, especially:
1.1. we don't want to detect commits to forks, we want to detect real contributions (anyone can fork and commit, but the real challenge is to get your work accepted upstream). Although it's debatable and ghuser.io additionally queries forks through the official API to see if some forks happen to be successful (by having stars on their own).
1.2. you have to be either a collaborator or have made pull requests: this is fine as there is no other possible way to get your commits into a repo, right? Either you have push-rights or you make a pull request. The only edge case I see is if you were collaborator but you're not anymore. Well and there is of course the case you described in ghuser-io/ghuser.io#96, which we want to solve differently (commits won't be detected but declared and reviewed).
Some extra documentation in the README or elsewhere would be appropriate.
Indeed!
2. The @wikimedia case
I'll look into it :)
3. GraphQL's repositoriesContributedTo
Unfortunately the documentation says
repositoriesContributedTo (RepositoryConnection!)
A list of repositories that the user recently contributed to.
from github-contribs.
from github-contribs.
I'm looking into the @wikimedia case. I think we're now on the same page:
Let's take the first commit of @strayblues's commits on gerrit: Create 2 OOUI tutorials and an index page
. This was made yesterday and I can see that github is crediting it to @strayblues: https://github.com/wikimedia/oojs-ui/commits?author=strayblues
So the git author/committer isn't the problem here, but as we know this doesn't count as a contribution, so it doesn't show up on her profile: https://github.com/strayblues
And so github-contribs
can't discover it. I wonder if it would magically pop up on her profile if she starred that repo now. @strayblues do you mind giving a star to https://github.com/wikimedia/oojs-ui ? Thanks a lot!
from github-contribs.
@AurelienLourot , it is not a @wikimedia specific case, and you do not need to ping people to ask them to help you see the problem, and I intentionally didnt ping her . I only used an example so you could see it, and didnt reject it. It was part of a training module I ran, with hundreds of participants. It is real. You can do some translations in @weblate to see it for yourself. You need to star or fork repos , per GitHub help pages.
from github-contribs.
You need to star or fork repos , per GitHub help pages.
yes but it would have been interesting to know if starring after a contribution makes that contribution appear on the profile, or if it was necessary to star before the contribution.
It's easier for strayblues to give a star than for me to search for some translation work to do. We're comparing one single click with hours of work here. I would have appreciated the help. Sorry if I bothered her with my mention. I understand, it won't happen again, I'll take it from here. Thanks for your time and help.
from github-contribs.
As mentioned, you can experiment yourself.
But in my experience , starring afterwards does make it appear. The docs also say that works.
What is less clear is what happens if someone unstars a repo that they have never interacted with except via commits which occurred via oauth or sync's via other means. Never tried that.
from github-contribs.
For the record she just starred it (thanks!) and the commit popped up at the author date (July 7th) on her profile, so for sure if she unstars the repo then the contrib will go away again.
The docs also say that works.
Do they? If you search for star
in the corresponding page, there is only one match. I also couldn't find a sentence saying that if you do things afterwards (like starring), "old" contributions would appear on your profile.
from github-contribs.
Related Issues (5)
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-contribs.