Added new [ghactivity_average_label_time] shortcode which will display an average amount of time issues are remaining marked with [Status] Needs Review.
Added a scheduled task to collect that average amount of time which is running daily
Create a React-based component for displaying Line Chart with that data
Сonstraints:
Currently, it is not possible to use brackets ([, ]) in shortcode parameters. So these should be replaced with [ for [ & ] for ] respectively.
[ghactivity_average_label_time]
shortcode which will display an average amount of time issues are remaining marked with[Status] Needs Review
.Сonstraints:
[
,]
) in shortcode parameters. So these should be replaced with[
for[
&]
for]
respectively.To test:
[ghactivity_average_label_time repo="automattic/jetpack" label="[Status] Needs Review"]
or just check it live: http://jeherve.wpsandbox.me/average-time-of-prs-being-labeled-with-needs-review-label/Also, you can:
automattic/jetpack#[Status] Needs Design Review
GHActivity_Schedule->record_average_label_times()
2 times to get some data