/github-first-contributions

A little script that scrapes GitHub hovercards on PRs to see if they're first contributions.

Primary LanguageJavaScript

GitHub First Contributions

A little script that scrapes GitHub hovercards on PRs to see if they're first contributions.

GitHub Sponsors Patreon Slack


Why scraping, not the API?

You may have seen this on a user's hovercard in a PR before: "their first in @org" or "their first ever". This information is readily available in the HTML view of the pull request, but GitHub doesn't reveal this data in the API response for the PR.

I wanted to get this data for a program we run at work and so instead of making loads of API requests to GitHub to get all the PRs a user has ever made etc. to determine if the PR is a first, I simply wrote this script that just scrapes the HTML hovercard for the user in each PR.

Example of the program running

Contributing

Contributions are always welcome to this project!
Take a look at any existing issues on this repository for starting places to help contribute towards, or simply create your own new contribution to the project.

Please make sure to follow the existing standards within the project such as code styles, naming conventions and commenting/documentation.

When you are ready, simply create a pull request for your contribution and I will review it whenever I can!

Donating

You can also help me and the project out by sponsoring me through GitHub Sponsors (preferred), contributing through a donation on PayPal or by supporting me monthly on my Patreon page.

GitHub Sponsors Patreon PayPal

Discussion, Support and Issues

Need support with this project, have found an issue or want to chat with others about contributing to the project?

Please check the project's issues page first for support & bugs!

Not found what you need here?

  • If you have an issue, please create a GitHub issue here to report the situation, include as much detail as you can!
  • or, You can join our Slack workspace to discuss any issue, to get support for the project or to chat with contributors and myself:
Slack