tidyversedashboard icon indicating copy to clipboard operation
tidyversedashboard copied to clipboard

Weekly summary

Open hadley opened this issue 7 years ago • 4 comments

i.e. total number of issues open/closed, downloads, repos with most commits

hadley avatar May 01 '18 14:05 hadley

This is unfortunately hard to do with the GraphQL API as there is AFAIK no equivalent to the since parameter in the v3 api (https://developer.github.com/v3/issues/#list-issues-for-a-repository).

So in order to get the number of closed issues in the last week we would have to do a a query per repo, which we can do of course.

jimhester avatar May 01 '18 21:05 jimhester

After some more research one way to do this would be, so it will be possible to do with graphQL, although it uses the search API, so could be problematic for other reasons...

{
  search(query:"org:tidyverse updated:>=2018-02-23T18:42:18Z sort:updated-asc", type:ISSUE, first:2) {
      nodes {
        ... on Issue {
          repository {
            nameWithOwner
          }
          number
          closedAt
          createdAt
        }
      }
  }
}

jimhester avatar May 01 '18 21:05 jimhester

Ideally you would be able to filter by issues since a given date, but that it not currently supported, with no real ETA until it is https://platform.github.community/t/performance-search-issues-based-on-the-last-updated-date/5180

jimhester avatar May 02 '18 11:05 jimhester

Ok we have issues and downloads. We don't have repos with most commits yet

jimhester avatar May 02 '18 16:05 jimhester