You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, github_issue_stats uses the scopes and labels parameters to define the set of issues for which statistics are collected. This is then transformed into a GitHub Issues Search query and the statistics are collected by executing that query via the Search API.
However, the GitHub Issues Search is much more powerful than that and offers more filters. For example, it's possible to define a query on two repositories and scope it to issues with no labels. Such a query is not possible currently with only the scopes and labels parameters.
It would be neat to support any Issues Search query as a valid way to select the set of issues for which stats are collected, instead of using scopes and labels. Such a query could be passed in using a new parameter --query. That would make this tool even more powerful and flexible.
The text was updated successfully, but these errors were encountered:
I was thinking a bit more about this, and it seems to me that both "row" and "columns" of the matrix with the desired data could be defined using search queries.
For example, a command which computes the breakdown of issues by created_at would have these as rows:
repo:atom/atom is:issue
repo:atom/atom label:bug
repo:atom/atom label:enhancement
repo:atom/atom is:pr
And would have these as columns:
created:2012-01-01..2013-01-01
created:2013-01-01..2014-01-01
created:2014-01-01..2015-01-01
And the program would then combine these to get to 4 x 3 = 12 full queries which it would execute and return data for.
Even if this workflow isn't what's exposed to the user, it would be interesting to have this as infrastructure to have a unified way of collecting data.
Currently,
github_issue_stats
uses thescopes
andlabels
parameters to define the set of issues for which statistics are collected. This is then transformed into a GitHub Issues Search query and the statistics are collected by executing that query via the Search API.However, the GitHub Issues Search is much more powerful than that and offers more filters. For example, it's possible to define a query on two repositories and scope it to issues with no labels. Such a query is not possible currently with only the
scopes
andlabels
parameters.It would be neat to support any Issues Search query as a valid way to select the set of issues for which stats are collected, instead of using
scopes
andlabels
. Such a query could be passed in using a new parameter--query
. That would make this tool even more powerful and flexible.The text was updated successfully, but these errors were encountered: