Skip to content

Commit ef37fc6

Browse files
committed
add tool-specific ignore options
resolves #233
1 parent 0ba9aff commit ef37fc6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

action.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,20 @@ inputs:
9494
- Prefix a path with a bang (`!`) to make it explicitly _not_ ignored. The order of
9595
multiple paths does _not_ take precedence. The `!` prefix can be applied to
9696
a submodule's path (if desired) but not hidden directories.
97-
- Glob patterns are not supported here. All asterisk characters (`*`) are literal.
97+
- **As of v2.12**, glob patterns are supported here.
98+
All asterisk characters (`*`) were previously literal.
99+
required: false
100+
default: '.github'
101+
ignore-tidy:
102+
description: |-
103+
Use this option to allow clang-tidy to ignore certain paths/files.
104+
See [`ignore`](#ignore) for more details on possible values.
105+
required: false
106+
default: '.github'
107+
ignore-format:
108+
description: |-
109+
Use this option to allow clang-format to ignore certain paths/files.
110+
See [`ignore`](#ignore) for more details on possible values.
98111
required: false
99112
default: '.github'
100113
thread-comments:
@@ -272,6 +285,8 @@ runs:
272285
--no-lgtm=${{ inputs.no-lgtm }} \
273286
--step-summary=${{ inputs.step-summary }} \
274287
--ignore="${{ inputs.ignore }}" \
288+
--ignore-tidy="${{ inputs.ignore-tidy }}" \
289+
--ignore-format="${{ inputs.ignore-format }}" \
275290
--database=${{ inputs.database }} \
276291
--file-annotations=${{ inputs.file-annotations }} \
277292
--extra-arg="${{ inputs.extra-args }}" \
@@ -308,6 +323,8 @@ runs:
308323
' --no-lgtm=${{ inputs.no-lgtm }}' +
309324
' --step-summary=${{ inputs.step-summary }}' +
310325
' --ignore="${{ inputs.ignore }}"' +
326+
' --ignore-tidy="${{ inputs.ignore-tidy }}"' +
327+
' --ignore-format="${{ inputs.ignore-format }}"' +
311328
' --database=${{ inputs.database }}' +
312329
' --file-annotations=${{ inputs.file-annotations }}' +
313330
' --extra-arg="${{ inputs.extra-args }}"' +

docs/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
required-permission: 'contents: read #file-changes'
2121
ignore:
2222
minimum-version: '1.3.0'
23+
ignore-tidy:
24+
minimum-version: '2.12.0'
25+
ignore-format:
26+
minimum-version: '2.12.0'
2327
thread-comments:
2428
minimum-version: '2.6.2'
2529
required-permission: 'contents: write #thread-comments'

0 commit comments

Comments
 (0)