Skip to content

Commit 472b4c0

Browse files
committed
spell out 'minimum-version' in action.yml
1 parent 264bd07 commit 472b4c0

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

action.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ inputs:
1414
- Any code style supported by the specified version of clang-format.
1515
required: false
1616
default: "llvm"
17-
min-version: '1.2.0'
17+
minimum-version: '1.2.0'
1818
extensions:
1919
description: The file extensions to run the action against. This is a comma-separated string.
2020
required: false
2121
default: "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx"
22-
min-version: '1.2.0'
22+
minimum-version: '1.2.0'
2323
tidy-checks:
2424
description: |
2525
Comma-separated list of globs with optional `-` prefix.
@@ -32,14 +32,14 @@ inputs:
3232
- It is also possible to rely solely on a .clang-tidy config file by specifying this option as a blank string (`''`).
3333
required: false
3434
default: "boost-*,bugprone-*,performance-*,readability-*,portability-*,modernize-*,clang-analyzer-*,cppcoreguidelines-*"
35-
min-version: '1.2.0'
35+
minimum-version: '1.2.0'
3636
repo-root:
3737
description: >
3838
The relative path to the repository root directory.
3939
This path is relative to the path designated as the runner's `GITHUB_WORKSPACE` environment variable.
4040
required: false
4141
default: '.'
42-
min-version: '1.2.0'
42+
minimum-version: '1.2.0'
4343
version:
4444
description: |
4545
The desired version of the [clang-tools](https://github.com/cpp-linter/clang-tools-pip) to use.
@@ -49,7 +49,7 @@ inputs:
4949
- This value can also be a path to where the clang tools are installed (if using a custom install location).
5050
required: false
5151
default: 12
52-
min-version: '1.2.0'
52+
minimum-version: '1.2.0'
5353
verbosity:
5454
description: |
5555
This controls the action's verbosity in the workflow's logs.
@@ -60,7 +60,7 @@ inputs:
6060
[re-running jobs or workflows](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs).
6161
required: false
6262
default: info
63-
min-version: '1.3.0'
63+
minimum-version: '1.3.0'
6464
lines-changed-only:
6565
description: |
6666
This controls what part of the files are analyzed. The following values are accepted:
@@ -74,7 +74,7 @@ inputs:
7474
See our [documented permissions](permissions.md)
7575
required: false
7676
default: false
77-
min-version: '1.5.0'
77+
minimum-version: '1.5.0'
7878
required-permission: 'content: read #file-changes'
7979
files-changed-only:
8080
description: |
@@ -85,7 +85,7 @@ inputs:
8585
See our [documented permissions](permissions.md)
8686
required: false
8787
default: true
88-
min-version: '1.3.0'
88+
minimum-version: '1.3.0'
8989
required-permission: 'content: read #file-changes'
9090
ignore:
9191
description: |
@@ -106,7 +106,7 @@ inputs:
106106
- Glob patterns are not supported here. All asterisk characters (`*`) are literal.
107107
required: false
108108
default: '.github'
109-
min-version: '1.3.0'
109+
minimum-version: '1.3.0'
110110
thread-comments:
111111
description: |
112112
This controls the behavior of posted thread comments as feedback. The following options are supported:
@@ -123,7 +123,7 @@ inputs:
123123
> 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.
124124
required: false
125125
default: 'false'
126-
min-version: '2.6.2'
126+
minimum-version: '2.6.2'
127127
required-permission: 'issues: write #thread-comments'
128128
no-lgtm:
129129
description: |
@@ -135,7 +135,7 @@ inputs:
135135
and [`format-review`](#format-review) options for further details.
136136
required: false
137137
default: true
138-
min-version: '2.6.2'
138+
minimum-version: '2.6.2'
139139
step-summary:
140140
description: |
141141
Set this option to true to append content as part of workflow's job summary.
@@ -150,26 +150,26 @@ inputs:
150150
> The [`no-lgtm`](#no-lgtm) option is _not_ applied to step summaries.
151151
required: false
152152
default: false
153-
min-version: '2.6.0'
153+
minimum-version: '2.6.0'
154154
file-annotations:
155155
description: |
156156
Set this option to false to disable the use of file annotations as feedback. Defaults to true.
157157
required: false
158158
default: true
159-
min-version: '1.4.3'
159+
minimum-version: '1.4.3'
160160
database:
161161
description: The directory containing compilation database (like compile_commands.json) file.
162162
required: false
163163
default: ""
164-
min-version: '1.4.0'
164+
minimum-version: '1.4.0'
165165
extra-args:
166166
description: |
167167
A string of extra arguments passed to clang-tidy for use as compiler arguments.
168168
Multiple arguments are separated by spaces so the argument name and value should
169169
use an '=' sign instead of a space.
170170
required: false
171171
default: ""
172-
min-version: '2.1.0'
172+
minimum-version: '2.1.0'
173173
tidy-review:
174174
description: |
175175
Set this option to `true` to enable Pull Request reviews from clang-tidy.
@@ -185,7 +185,7 @@ inputs:
185185
required: false
186186
default: false
187187
experimental: true
188-
min-version: '2.9.0'
188+
minimum-version: '2.9.0'
189189
required-permission: 'pull_request: write #pull-request-reviews'
190190
format-review:
191191
description: |
@@ -201,21 +201,21 @@ inputs:
201201
> The [`no-lgtm`](#no-lgtm) option is applicable to Pull Request reviews.
202202
required: false
203203
default: false
204-
min-version: '2.9.0'
204+
minimum-version: '2.9.0'
205205
required-permission: 'pull_request: write #pull-request-reviews'
206206
outputs:
207207
checks-failed:
208208
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy and clang-format.
209209
value: ${{ steps.cpp-linter-unix.outputs.checks-failed || steps.cpp-linter-windows.outputs.checks-failed }}
210-
min-version: '1.2.0'
210+
minimum-version: '1.2.0'
211211
clang-tidy-checks-failed:
212212
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-tidy only.
213213
value: ${{ steps.cpp-linter-unix.outputs.clang-tidy-checks-failed || steps.cpp-linter-windows.outputs.clang-tidy-checks-failed }}
214-
min-version: '2.7.2'
214+
minimum-version: '2.7.2'
215215
clang-format-checks-failed:
216216
description: An integer that can be used as a boolean value to indicate if any checks failed by clang-format only.
217217
value: ${{ steps.cpp-linter-unix.outputs.clang-format-checks-failed || steps.cpp-linter-windows.outputs.clang-format-checks-failed }}
218-
min-version: '2.7.2'
218+
minimum-version: '2.7.2'
219219
runs:
220220
using: "composite"
221221
steps:

docs/badge_hook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def _badge_for_version(text: str, page: Page, files: Files):
5252
icon = "material-tag-outline"
5353
href = f"https://github.com/cpp-linter/cpp-linter-action/releases/v{text}"
5454
return _badge(
55-
icon=f'[:{icon}:]({href} "required version")',
56-
text=f'[{text}]({href} "required version")',
55+
icon=f'[:{icon}:]({href} "minimum version")',
56+
text=f'[{text}]({href} "minimum version")',
5757
)
5858

5959

docs/gen_io_doc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
for action_input, input_metadata in action_dict["inputs"].items():
2525
doc += f"### `{action_input}`\n\n"
2626

27-
assert "min-version" in input_metadata
28-
min_ver = input_metadata["min-version"]
27+
assert "minimum-version" in input_metadata
28+
min_ver = input_metadata["minimum-version"]
2929
doc += f"<!-- md:version {min_ver} -->\n"
3030

3131
assert "default" in input_metadata
@@ -56,8 +56,8 @@
5656
for action_output, output_metadata in action_dict["outputs"].items():
5757
doc += f"\n### `{action_output}`\n\n"
5858

59-
assert "min-version" in output_metadata
60-
min_ver = output_metadata["min-version"]
59+
assert "minimum-version" in output_metadata
60+
min_ver = output_metadata["minimum-version"]
6161
doc += f"<!-- md:version {min_ver} -->\n"
6262

6363

0 commit comments

Comments
 (0)