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
feat: implement commits year option and display appropriate year label (#2107)
* add custom year
* edit fetcher
* add tests
* add documentation
* Update vercel.json
* Update fetchStats.test.js
* Update readme.md
* Update readme.md
Co-authored-by: Rick Staa <[email protected]>
* test: fix tests
* style: format code
* fix: fix commit stats time frame description #1053
This commit makes sure the last year label is shown when
`include_all_commits` or `year` is not provided. See #1053 for more
information.
* resolved merge conflict
* Update stats-fetcher.js
* resolve comments
* Update src/cards/types.d.ts
Co-authored-by: Alexandr Garbuzov <[email protected]>
* Update src/fetchers/stats-fetcher.js
Co-authored-by: Alexandr Garbuzov <[email protected]>
* graphQL year only to commit
* change argument name to commits_year
* Update readme.md
Co-authored-by: Alexandr Garbuzov <[email protected]>
* Update readme.md
Co-authored-by: Alexandr Garbuzov <[email protected]>
* Update readme.md
Co-authored-by: Alexandr Garbuzov <[email protected]>
* wrap label into function
* review
* more review
* fix test
* Update readme.md
Co-authored-by: Copilot <[email protected]>
* docs
---------
Co-authored-by: Touch Sungkawichai <[email protected]>
Co-authored-by: Rick Staa <[email protected]>
Co-authored-by: Alexandr Garbuzov <[email protected]>
Co-authored-by: Copilot <[email protected]>
With inbuilt themes, you can customize the look of the card without doing any [manual customization](#customization).
@@ -362,6 +371,7 @@ If we don't support your language, please consider contributing! You can find mo
362
371
|`ring_color`| Color of the rank circle. | string (hex color) |`2f80ed`|
363
372
|`number_format`| Switches between two available formats for displaying the card values `short` (i.e. `6.6k`) and `long` (i.e. `6626`). | enum |`short`|
364
373
|`show`| Shows [additional items](#showing-additional-individual-stats) on stats card (i.e. `reviews`, `discussions_started`, `discussions_answered`, `prs_merged` or `prs_merged_percentage`). | string (comma-separated values) |`null`|
374
+
| `commits_year` | Filters and counts only commits made in the specified year | integer _(YYYY)_ | `<current year> (one year to date)`.
365
375
366
376
> [!NOTE]\
367
377
> When hide\_rank=`true`, the minimum card width is 270 px + the title length and padding.
0 commit comments