Code Monkey home page Code Monkey logo

rustaceanrank's People

Contributors

beatty avatar markrmullan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rustaceanrank's Issues

Contribution levels from Git

"Ideally contribution level from git would be used. I think this would be 10x the work."

Damn, talk about a perfect hook. You really know how to get an engineer to work on a problem. You should consider starting a tech company, or something ๐Ÿ˜‰

This might not be too difficult. It looks like crates.repository specifies a full repository URL such as https://github.com/rust-lang/rust. In that example, rust-lang is the owner and rust is the repository, which should be easily parseable, especially for throwaway code.

From there it would just be a GET https://api.github.com/repos/{owner}/{repository}/contributors. The easiest way to authenticate would be using Basic Authentication. For GH, just concat your username:password, base64 encode it, and throw it in an Authorization header. e.g.,

curl --location --request GET 'https://api.github.com/repos/beatty/rustaceanrank/contributors' \
--header 'Authorization: Basic: base64(markrmullan:scrubbed)'

[
    {
        "login": "beatty",
        "id": 101126,
        "node_id": "MDQ6VXNlcjEwMTEyNg==",
        "avatar_url": "https://avatars.githubusercontent.com/u/101126?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/beatty",
        "html_url": "https://github.com/beatty",
        "followers_url": "https://api.github.com/users/beatty/followers",
        "following_url": "https://api.github.com/users/beatty/following{/other_user}",
        "gists_url": "https://api.github.com/users/beatty/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/beatty/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/beatty/subscriptions",
        "organizations_url": "https://api.github.com/users/beatty/orgs",
        "repos_url": "https://api.github.com/users/beatty/repos",
        "events_url": "https://api.github.com/users/beatty/events{/privacy}",
        "received_events_url": "https://api.github.com/users/beatty/received_events",
        "type": "User",
        "site_admin": false,
        "contributions": 2
    }
]

A Github contribution includes actions like commenting on a PR and not just commits. The response is sorted in descending order by number of contributions for the repository, which feels awfully convenient for this project. Give it a shot with https://api.github.com/repos/rust-lang/rust/contributors. The bots that massively pad their own commit numbers, such as https://github.com/bors, should be easily identifiable for exclusion. The Gitlab et al. repos would be a different story, SELECT repository FROM crates WHERE repository NOT LIKE 'https://github.com/%' LIMIT 100;, but it feels like Github alone should expand your awesome-human-candidate-pool by quite a bit, if it's worth investing a little more time.

Avatars and everything? You've really undersold your design skills.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.