techgaun / active-forks

Find active github forks of a repo https://git.io/vSnrC
https://techgaun.github.io/active-forks/index.html
2.28k stars 295 forks source link

wrong last push date - github api returns wrong data #64

Open milahu opened 2 years ago

milahu commented 2 years ago

see https://techgaun.github.io/active-forks/#https://github.com/ileben/ShivaVG

actual

Link Owner Name Branch Stars Forks Open Issues Size Last Push
Link Ecognize ShivaVG master 12 6 10 1113 19 days ago

expected

last push was 2016-07-28 = 5 years ago, per https://github.com/Ecognize/ShivaVG/branches/all

shields: GitHub last commit

{
  "data": {
    "repository": {
      "createdAt": "2012-09-27T04:53:51Z",
      "pushedAt": "2021-10-17T20:07:27Z",
      "updatedAt": "2021-10-17T11:25:22Z",
      "refs": {
        "nodes": [
          {
            "target": {
              "authoredDate": "2016-07-28T00:15:03Z",
              "committedDate": "2016-07-28T00:15:03Z"
            }
          }
        ]
      }
    }
  }
}
{
  repository(name: "ShivaVG", owner: "Ecognize") {
    createdAt
    pushedAt
    updatedAt
    refs(last: 1, refPrefix: "refs/heads/") {
      nodes {
        target {
          ... on Commit {
            authoredDate
            committedDate
          }
        }
      }
    }
  }
}

also deep forks are not listed → #31

abubelinha commented 1 year ago

Same problem when sorting "recently updated" adminer's forks:

Link | Owner | Name | Branch | Stars | Forks | Open Issues | Size | Last Push -- | -- | -- | -- | -- | -- | -- | -- | -- [Link](https://github.com/jrivero/adminer) | jrivero | adminer | master | 1 | 0 | 0 | 8172 | 3 months ago [Link](https://github.com/nevrax/adminer) | nevrax | adminer | master | 0 | 0 | 0 | 8297 | 4 months ago ... | | | | | | | | ...

"last push" info is totally wrong. Those forks have never been updated. They are as old as the original forked repository.

@abubelinha