ecosyste-ms / roadmap

Planning and roadmap for future Ecosyste.ms development
GNU Affero General Public License v3.0
13 stars 1 forks source link

Provide timestamp of first source project discovery #15

Open Ly0n opened 11 months ago

Ly0n commented 11 months ago

It might be interesting for many users of ecosyste.ms to know when an project has been discovery the first time. One example use case of this to determine when a project has been made public. The GitHub API does not provide such information and this value can differ significantly from the timestamp of the first commit, as many repositories are set to public with their first release.

For our use-case at ClimateTriage.com the project age is what we are looking for, but I still think I could be relevant for future use cases.

Upvote & Fund

Fund with Polar

andrew commented 11 months ago

For GitHub repositories, if there were not public initially, we can get the PublicEvent, from the timeline service for that repository: https://docs.github.com/en/rest/using-the-rest-api/github-event-types?apiVersion=2022-11-28#publicevent

Timeline api for list of public events: https://timeline.ecosyste.ms/api/v1/events?event_type=PublicEvent

One problem may be that the name of the repository may have changed since it was first made public, and the timeline indexes on name rather than uuid of the repository.