opensource-observer / oso

Measuring the impact of open source software
https://opensource.observer
Apache License 2.0
74 stars 16 forks source link

Gitcoin API integration with OSO #1288

Closed ccerv1 closed 7 months ago

ccerv1 commented 7 months ago

Describe the feature you'd like to request

A few impact metrics (if available) should be displayed on the project page on the grant explorer.

Per the Figma

image

Describe the solution you'd like

Three cards that can be powered by the following API calls.

  1. Checking if there is a project_id for a given wallet address or GitHub repo

  2. Grabbing the relevant metrics for a project using its project_id

  3. For velocity, a simple measurement would be to sum up commits over the period (Feb - Apr) and compare to (Nov - Jan). If it's >50% higher, it could be increasing if it's >50% lower it could be decreasing and if it's in the middle it could be steady

NOTE if a unique project_id can't be returned, then the cards should simply be hidden.

Describe alternatives you've considered

Create an embeddable widget (eg #631) - not in scope currently

ccerv1 commented 7 months ago

Closing this out :) After GG20, we can submit a PR to help them migrate to code_metrics_by_project_v1