Refined-github: AngularJS repository marked as being 51 years old

Created on 6 Jun 2020  路  5Comments  路  Source: sindresorhus/refined-github

I know that this is probably caused due to broken unix timestamps in the repository, but it should be possible to exclude those broken timestamps.

angular/angular.js

bug help wanted

All 5 comments

Good point. In this case the broken timestamp is the unix epoch, so it's easy to detect and discard:

https://github.com/angular/angular.js/commit/866346e1ada583daeb649c253516c8f8a879c387.patch

Repos that have this timestamp will simply be cached with false and ignored

I'm wondering why it says 51 years though, as 2020 minus 1970 equals 50. Is that GitHub's <relative-time> element rounding up?

I guess it's rounding up, because we're already in June.

we could use this and filter out the 1990 ones

{
  repository(owner: "angular", name: "angular.js") {
    ref(qualifiedName: "master") {
      target {
        ... on Commit {
          history(first: 5, after: "72fbd48f2a805e789fc574176e7a9a87979418d7 8996") {
            nodes {
              committedDate
              resourcePath
            }
          }
        }
      }
    }
  }
}

Only it _if_ that replaces the current fetchDom request

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkdobrev picture hkdobrev  路  3Comments

juliocanares picture juliocanares  路  3Comments

Celthi picture Celthi  路  3Comments

yakov116 picture yakov116  路  3Comments

shivapoudel picture shivapoudel  路  3Comments