Skip to contents

The contributions since the user joined GitHub and in the 12 full months before the collection, the commits, and the current and the longest streak, with their days.

Usage

contribution_tiles(d)

Arguments

d

The numbers of the card, from card_data().

Value

A list of key figures, each a list of its name, its value and what it covers.

Examples

str(rghcard:::contribution_tiles(rghcard:::card_data(example_stats(), 30)))
#> List of 5
#>  $ :List of 3
#>   ..$ : chr "Contributions"
#>   ..$ : chr "4.1K"
#>   ..$ : chr "since Mar 2019"
#>  $ :List of 3
#>   ..$ : chr "Last 12 months"
#>   ..$ : chr "1.2K"
#>   ..$ : chr "contributions"
#>  $ :List of 3
#>   ..$ : chr "Commits"
#>   ..$ : chr "2.5K"
#>   ..$ : chr "public repositories"
#>  $ :List of 3
#>   ..$ : chr "Current streak"
#>   ..$ : chr "23 days"
#>   ..$ : chr "since 10 Nov"
#>  $ :List of 3
#>   ..$ : chr "Longest streak"
#>   ..$ : chr "41 days"
#>   ..$ : chr "7 Apr – 17 May 2025"