Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display companies backing contributors #113

Open
eternoendless opened this issue Aug 1, 2023 · 0 comments
Open

Display companies backing contributors #113

eternoendless opened this issue Aug 1, 2023 · 0 comments

Comments

@eternoendless
Copy link
Member

Allow to switch the ranking so that it displays either individuals or organizations ("sponsors").

Contributions (PRs) are assigned to organizations following these rules:

  • For each Pull Request, read the "sponsor company" in the PR's body.
  • If the information is provided, the contribution counts toward that organization
  • Else, try to match the PR author's GitHub username with a list of the usernames & known sponsor during the PR's creation timeframe (read below for more details)
  • Else, try to fetch the author's company from their GitHub profile
  • Else, mark that contribution as "individual" and exclude it from the ranking

File examples

known-sponsors.yml

PululuK:
  - from: 2016-09-01
    to: 2017-08-31
    sponsor: "Add One"
  - from: 2017-09-01
    to: 2021-10-01
    sponsor: "L'Agence 123"
  - from: 2022-07-01
    to:
    sponsor: "Evolutive Group"

eternoendless:
  - from: 2017-05-01
    to:
    sponsor: "PrestaShop SA"

sponsors.yml

"PrestaShop SA":
  - github: "https://github.com/PrestaShopCorp/"
  - url: "https://www.prestashop.com/"
  - aliases: ["PrestaShop", "PrestaShopSA", "PrestaShopCorp"]

"Evolutive Group":
  - aliases: ["EvolutiveGroup"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant