Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ghuser/github-contribs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ghuser/github-contribs

List all GitHub repos a user has contributed to since the beginning of time.

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Coverage Status npm version

github-contribs

List all GitHub repos a user has contributed to since the beginning of time:

  • not just the last few months,
  • not just the repos owned by the user or their organisations,
  • simply all repos a user has ever pushed to.
$ github-contribs AurelienLourot
✔ Fetched first day at GitHub: 2015-04-04.
⚠ Be patient. The whole process might take up to an hour... Consider using --since and/or --until
✔ Fetched all commits and PRs.
35 repo(s) found:
AurelienLourot/lsankidb
reframejs/reframe
dracula/gitk
...

Advanced usage

Installation

$ sudo npm install -g @ghuser/github-contribs

Contributing

To run your local changes:

$ yarn install
$ ./cli.js --help

Team

This project is maintained by the following person(s) and a bunch of awesome contributors.

AurelienLourot
Aurelien Lourot

FAQ

How does it work?

Normally in order to retrieve all repositories a user has interacted with, one should query the GitHub Events API. Unfortunately it returns only the last 90 days, so we don't use it.

Instead we noticed that the "Contribution Activity" on the profile pages queries such URLs in the background:

So we're doing the same :)

Why is it so slow?

We hit a rate limit. And since it's not an official API, we can't use a token to raise the limit.

Isn't it likely to break?

Yes, it is since that interface isn't public. We're monitoring it and will react as fast as we can when it breaks.

Changelog

2.0.0 (2018-06-25):

  • Exported some helper functions.

1.0.0 (2018-06-11):

  • Support for passing a GitHub API key.

0.0.2 (2018-05-29):

0.0.1 (2018-05-29):

  • Initial version.

Similar/Related projects

  • GitHub-contributions: uses a different technique. It fetches all the user's pull requests from the official API. This is clever but will miss the repos to which the user has pushed directly without pull request.
  • gharchive.org: records all GitHub events for all users. In theory it should be possible to replace our implementation by queries to this huge database.

Keywords

FAQs

Package last updated on 25 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc