Skip to content

Commit 881f0ec

Browse files
author
repo-visualizer
committed
add color encoding param
and update Tree diagram with small layout tweaks made to the one in the writeup
1 parent 7e5083d commit 881f0ec

File tree

7 files changed

+1186
-447
lines changed

7 files changed

+1186
-447
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ The maximum number of nested folders to show files within. A higher number will
3030

3131
Default: 5
3232

33+
## `color_encoding`
34+
35+
What metric to represent with color in the diagram. Options: "type" | "number-of-changes" | "last-change"
36+
37+
Default: "type"
38+
3339
## Example usage
3440

3541
You'll need to run the `actions/checkout` Action beforehand, to check out the code.
@@ -42,5 +48,4 @@ You'll need to run the `actions/checkout` Action beforehand, to check out the co
4248
with:
4349
output_file: "images/diagram.svg"
4450
excluded_paths: "dist,node_modules"
45-
max_depth: 9
4651
```

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ inputs:
1111
max_depth:
1212
description: "The maximum number of nested folders to show files within. Default: 9"
1313
required: false
14+
color_encoding:
15+
description: "What metric to represent with color in the diagram. Options: 'type' | 'number-of-changes' | 'last-change'. Default: 'type'"
16+
required: false
1417
runs:
1518
using: "node12"
1619
main: "index.js"

0 commit comments

Comments
 (0)