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
The error and warning messages for each one of the analyzed commits. This is useful if you want to use the commitlint results in a JSON format in other jobs. See [the documentation](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#fromjson) on how to read JSON information from outputs.
62
+
63
+
Below you can see an example text output together with its corresponding JSON output:
64
+
65
+
```
66
+
You have commit messages with errors
67
+
68
+
⧗ input: wrong message
69
+
✖ subject may not be empty [subject-empty]
70
+
✖ type may not be empty [type-empty]
71
+
72
+
✖ found 2 problems, 0 warnings
73
+
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
74
+
75
+
⧗ input: chore: my message
76
+
⚠ body must have leading blank line [body-leading-blank]
77
+
78
+
⚠ found 0 problems, 1 warnings
79
+
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
"message": "chore: my message\n\nsome context without leading blank line",
94
+
"valid": true,
95
+
"errors": [],
96
+
"warnings": ["body must have leading blank line"],
97
+
},
98
+
]
99
+
```
100
+
57
101
## About `extends` in your config file
58
102
59
103
This is a [`Docker` action](https://github.com/actions/toolkit/blob/e2adf403d6d14a9ca7474976ccaca20f72ff8209/docs/action-types.md#why-would-i-choose-a-docker-action), and was made like this so that you can run it with minimum setup, regardless of your repo's environment. It comes packed with the most famous shared configurations that you can use in your commitlint config's `extends` field:
0 commit comments