File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ There should be exactly one capture group in your regular expression (using pare
47
47
The extra characters will simply be removed when comparing the values (ex. "36%" will be interpreted as "36").
48
48
You'll receive an error if you mix units (ex. "1mb" and "1gb").
49
49
50
- By default commitstat assumes the input is simply a number and a regex isn't needed (ex. ` stat -f %z app.zip | commitstat - ` ).
50
+ By default commitstat assumes the input is simply a number and a regex isn't needed (ex. ` stat --format %s app.zip | commitstat - ` on Ubuntu ).
51
51
52
52
## GitHub Action
53
53
@@ -106,6 +106,14 @@ $ go test ./... -coverprofile=coverage.out
106
106
$ go tool cover -func coverage.out | commitstat - --regex " total:\s+\(statements\)\s+([\d\.]+%)" --goal increase --name coverage
107
107
```
108
108
109
+ ### File sizes
110
+
111
+ Report the size of a file (in bytes) using ` stat ` on Ubuntu (note that the options for stat can differ depending on your OS).
112
+
113
+ ``` console
114
+ $ stat --format %s app.zip | commitstat -
115
+ ```
116
+
109
117
## How it works
110
118
111
119
Stats are stored directly in GitHub through the commit status API.
You can’t perform that action at this time.
0 commit comments