07_05_GuyT
07_05_GuyT

Reputation: 2887

Git API for open source version

Is there a git API/rest which I can use to determine open source version?
I mean I'll send the open source name and I'll get the current version of it.

Or better if possible :) Since we are using some open sources in our project I want to create some program/script which provide the open source names and version and find if there is new for minor or major update.

Upvotes: 0

Views: 158

Answers (1)

VonC
VonC

Reputation: 1329692

That is what VersionEye is doing.

And it has its own REST API

For example: https://www.versioneye.com/api/v2/products/c/git%2Fgit/versions?api_key=Log+in+to+get+your+own+api+token

Response Body:

{
  "name": "git",
  "language": "c",
  "prod_key": "git/git",
  "version": "2.6.4",
  "prod_type": "GitHub",
  "versions": [
    {
      "version": "2.3.0-rc2",
      "released_at": "2015-01-27T22:39:53.000+00:00",
      "released_string": "2015-01-27 22:39:53 UTC"
    },
    {
      "version": "2.3.0-rc1",
      "released_at": "2015-01-21T01:35:41.000+00:00",
      "released_string": "2015-01-21 01:35:41 UTC"
    },
    ...

It is actually free for opensource, and not free for private repos.

It is the only one I know which monitors all opensource.
You have other referentials usually dedicated to a language, like for instance godoc.org (for the golang opensource projects), with its own API, but limited to a language.

Upvotes: 2

Related Questions