Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GitHub action step to chart the latest number of files changed in commits using Raku
- name: Install Text::Chart
run: zef install Text::Chart
- name: Chart files changed latest commits
shell: raku {0}
run: |
use Text::Chart;
my @changed-files = qx<git log --oneline --shortstat -$COMMITS>
.lines.grep( /file/ )
.map( * ~~ /$<files>=(\d+) \s+ file/ )
.map: +*<files>;
say vertical(
:max( @changed-files[0..*-2].max),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment