The runs of the days of the card; the share of the finished runs that succeeded, those that ended in success or failure; the failed runs; the time the runs took, from their start to their end; and the workflows that ran, with their repositories. A run still going, cancelled or skipped is not finished. A share just under 100% shows as 99%, so that a failure never hides, and one just over 0% as 1%, so that a success never does. Runs collected before rghcard 0.4.0 have no times: the run time then counts the runs that have them, and says how many.
Arguments
- d
The numbers of the card, from
card_data().
Examples
str(rghcard:::actions_tiles(rghcard:::card_data(example_stats(), 30)))
#> List of 5
#> $ :List of 3
#> ..$ : chr "Runs"
#> ..$ : chr "86"
#> ..$ : chr "last 30 days"
#> $ :List of 3
#> ..$ : chr "Succeeded"
#> ..$ : chr "90%"
#> ..$ : chr "of 86 finished"
#> $ :List of 3
#> ..$ : chr "Failed"
#> ..$ : chr "9"
#> ..$ : chr "last 30 days"
#> $ :List of 3
#> ..$ : chr "Run time"
#> ..$ : chr "9.8 h"
#> ..$ : chr "last 30 days"
#> $ :List of 3
#> ..$ : chr "Workflows"
#> ..$ : chr "4"
#> ..$ : chr "in 4 repositories"