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
Copy file name to clipboardExpand all lines: action.yml
+62-172
Original file line number
Diff line number
Diff line change
@@ -5,228 +5,118 @@ branding:
5
5
icon: "check-circle"
6
6
color: "green"
7
7
inputs:
8
-
style:
9
-
description: |
10
-
The style rules to use.
8
+
thread-comments:
9
+
description: >-
10
+
Set this option to 'true' or 'false' to enable or disable the use of
11
+
thread comments as feedback. Set this to 'update' to update an existing comment
12
+
if one exists; the value 'true' will always delete an old comment and post a new one
13
+
if necessary. Defaults to false.
14
+
required: false
15
+
default: 'false'
16
+
no-lgtm:
17
+
description: >-
18
+
Set this option to true or false to enable or disable the use of a thread comment that
19
+
basically says 'Looks Good To Me' (when all checks pass). Defaults to true.
20
+
See `thread-comments` option for further details.
21
+
required: false
22
+
default: true
23
+
step-summary:
24
+
description: >
25
+
Set this option to true to append content as part of workflow's job summary. Defaults to false.
11
26
12
-
- Set this to `file` to have clang-format use the closest relative .clang-format file.
13
-
- Set this to a blank string (`''`) to disable the use of clang-format entirely.
14
-
- Any code style supported by the specified version of clang-format.
27
+
See implementation details in GitHub's documentation about
28
+
[Adding a job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary).
29
+
This option is independent of the `thread-comments` option, rather this option uses the same content that
30
+
the `thread-comments` option would use.
31
+
required: false
32
+
default: false
33
+
file-annotations:
34
+
description: Set this option to false to disable the use of file annotations as feedback. Defaults to true.
35
+
required: false
36
+
default: true
37
+
style:
38
+
description: >
39
+
The style rules to use (defaults to 'llvm').
40
+
Set this to 'file' to have clang-format use the closest relative .clang-format file.
15
41
required: false
16
42
default: "llvm"
17
-
minimum-version: '1.2.0'
18
43
extensions:
19
-
description: The file extensions to run the action against. This is a comma-separated string.
44
+
description: >
45
+
The file extensions to run the action against.
46
+
This comma-separated string defaults to 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx'.
20
47
required: false
21
48
default: "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx"
22
-
minimum-version: '1.2.0'
23
49
tidy-checks:
24
-
description: |
25
-
Comma-separated list of globs with optional `-` prefix.
26
-
Globs are processed in order of appearance in the list.
27
-
Globs without `-` prefix add checks with matching names to the set,
28
-
globs with the `-` prefix remove checks with matching names from the set of enabled checks.
29
-
This option's value is appended to the value of the 'Checks' option in a .clang-tidy file (if any).
30
-
31
-
- It is possible to disable clang-tidy entirely by setting this option to `'-*'`.
32
-
- It is also possible to rely solely on a .clang-tidy config file by specifying this option as a blank string (`''`).
50
+
description: >
51
+
A string of regex-like patterns specifying what checks clang-tidy will use.
52
+
This defaults to 'boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-*,cppcoreguidelines-*'. See also clang-tidy docs for more info.
The relative path to the repository root directory.
39
-
This path is relative to the path designated as the runner's `GITHUB_WORKSPACE` environment variable.
57
+
The relative path to the repository root directory. The default value '.' is relative to the runner's GITHUB_WORKSPACE environment variable.
40
58
required: false
41
-
default: '.'
42
-
minimum-version: '1.2.0'
59
+
default: "."
43
60
version:
44
-
description: |
45
-
The desired version of the [clang-tools](https://github.com/cpp-linter/clang-tools-pip) to use.
46
-
Accepted options are strings which can be 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8 or 7.
47
-
48
-
- Set this option to a blank string (`''`) to use the platform's default installed version.
49
-
- This value can also be a path to where the clang tools are installed (if using a custom install location).
61
+
description: "The desired version of the clang tools to use. Accepted options are strings which can be 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8 or 7. Defaults to 12."
50
62
required: false
51
-
default: 12
52
-
minimum-version: '1.2.0'
63
+
default: "12"
53
64
verbosity:
54
-
description: |
55
-
This controls the action's verbosity in the workflow's logs.
56
-
Supported options are `info` or `debug`.
57
-
This option does not affect the verbosity of resulting thread comments or file annotations.
58
-
59
-
The verbosity can also be engaged by enabling debug logs when
60
-
[re-running jobs or workflows](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs).
65
+
description: A hidden option to control the action's log verbosity. This is the `logging` level (defaults to `info`).
61
66
required: false
62
67
default: info
63
-
minimum-version: '1.3.0'
64
68
lines-changed-only:
65
-
description: |
66
-
This controls what part of the files are analyzed. The following values are accepted:
67
-
68
-
- `false`: All lines in a file are analyzed.
69
-
- `true`: Only lines in the diff that contain additions are analyzed.
70
-
- `diff`: All lines in the diff are analyzed (including unchanged lines but not subtractions).
71
-
72
-
!!! info "Important"
73
-
This feature requires special permissions to perform successfully.
74
-
See our [documented permissions](permissions.md)
69
+
description: Set this option to 'true' to only analyze changes in the event's diff. Defaults to 'false'.
- In the case of multiple paths, you can use a pipe character (`|`)
96
-
to separate the multiple paths. Multiple lines are forbidden as an input to this option;
97
-
it must be a single string.
80
+
- In the case of multiple paths, you can use a pipe character ('|')
81
+
to separate the multiple paths. Multiple lines are forbidden as input to this option.
98
82
- This can also have files, but the file's relative path has to be specified
99
83
as well.
100
-
- There is no need to use `./` for each entry; a blank string (`''`) represents
101
-
the [`repo-root`](#repo-root) path.
102
-
- Submodules are automatically ignored. Hidden directories (beginning with a `.`) are also ignored
103
-
automatically.
104
-
- Prefix a path with a bang (`!`) to make it explicitly _not_ ignored. The order of
105
-
multiple paths does _not_ take precedence. The `!` prefix can be applied to
106
-
a submodule's path (if desired) but not hidden directories.
107
-
- Glob patterns are not supported here. All asterisk characters (`*`) are literal.
108
-
required: false
109
-
default: '.github'
110
-
minimum-version: '1.3.0'
111
-
thread-comments:
112
-
description: |
113
-
This controls the behavior of posted thread comments as feedback. The following options are supported:
114
-
115
-
- `true`: enable the use of thread comments. This will always delete an outdated thread comment and post a new comment (triggering a notification for every comment).
116
-
- `update`: update an existing thread comment if one already exists. This option does not trigger a new notification for every thread comment update.
117
-
- `false`: disable the use of thread comments.
118
-
119
-
!!! info "Important"
120
-
This feature requires special permissions to perform successfully.
121
-
See our [documented permissions](permissions.md)
122
-
123
-
> [!NOTE]
124
-
> If run on a private repository, then this feature is disabled because the GitHub REST API behaves differently for thread comments on a private repository.
description: A string of extra arguments passed to clang-tidy for use as compiler arguments. Multiple arguments are separated by spaces so the argument name and value should use an '=' sign instead of a space.
181
100
required: false
182
101
default: ""
183
-
minimum-version: '2.1.0'
184
102
tidy-review:
185
-
description: |
186
-
Set this option to `true` to enable Pull Request reviews from clang-tidy.
187
-
188
-
!!! info "Important"
189
-
This feature requires special permissions to perform successfully.
190
-
See our [documented permissions](permissions.md).
191
-
192
-
See also [the PR review feature caveats](pr-review-caveats.md).
193
-
194
-
> [!NOTE]
195
-
> The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews.
103
+
description: Set this to true to enable PR reviews from clang-tidy. See also https://cpp-linter.github.io/cpp-linter/pr_review_caveats.html
0 commit comments