Skip to content

Commit ace79ca

Browse files
authored
build: ignore changelog when linting codebase (#5205)
CHANGELOG.md is automatically generated by the release workflow. Ignore it when linting the codebase because it might not pass textlint validation because of lowercase terms.
1 parent 6015df2 commit ace79ca

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

.github/release-please/release-please-config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"changelog-sections": [
4-
{
5-
"section": "⬆️ Dependency updates",
6-
"type": "deps"
7-
},
84
{
95
"section": "🚀 Features",
106
"type": "feat"
117
},
128
{
13-
"section": "🐛 Bug fixes",
9+
"section": "🐛 Bugfixes",
1410
"type": "fix"
1511
},
12+
{
13+
"section": "⬆️ Dependency updates",
14+
"type": "deps"
15+
},
1616
{
1717
"section": "🧰 Maintenance",
1818
"type": "build"

.textlintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ test-git-flags: ## Run super-linter with different git-related flags
164164
-e ACTIONS_RUNNER_DEBUG=true \
165165
-e ERROR_ON_MISSING_EXEC_BIT=true \
166166
-e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true \
167-
-e FILTER_REGEX_EXCLUDE=".*/test/linters/.*" \
167+
-e FILTER_REGEX_EXCLUDE=".*(/test/linters/|CHANGELOG.md).*" \
168168
-e DEFAULT_BRANCH=main \
169169
-e IGNORE_GENERATED_FILES=true \
170170
-e IGNORE_GITIGNORED_FILES=true \
@@ -179,7 +179,7 @@ lint-codebase: ## Lint the entire codebase
179179
-e ACTIONS_RUNNER_DEBUG=true \
180180
-e DEFAULT_BRANCH=main \
181181
-e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true \
182-
-e FILTER_REGEX_EXCLUDE=".*/test/linters/.*" \
182+
-e FILTER_REGEX_EXCLUDE=".*(/test/linters/|CHANGELOG.md).*" \
183183
-e GITLEAKS_CONFIG_FILE=".gitleaks-ignore-tests.toml" \
184184
-e RENOVATE_SHAREABLE_CONFIG_PRESET_FILE_NAMES="default.json,hoge.json" \
185185
-e VALIDATE_ALL_CODEBASE=true \
@@ -198,7 +198,7 @@ lint-subset-files-enable-only-one-type: ## Lint a small subset of files in the c
198198
-e ACTIONS_RUNNER_DEBUG=true \
199199
-e DEFAULT_BRANCH=main \
200200
-e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true \
201-
-e FILTER_REGEX_EXCLUDE=".*/test/linters/.*" \
201+
-e FILTER_REGEX_EXCLUDE=".*(/test/linters/|CHANGELOG.md).*" \
202202
-e VALIDATE_ALL_CODEBASE=true \
203203
-e VALIDATE_MARKDOWN=true \
204204
-v "$(CURDIR):/tmp/lint" \
@@ -211,7 +211,7 @@ lint-subset-files-enable-expensive-io-checks: ## Lint a small subset of files in
211211
-e ACTIONS_RUNNER_DEBUG=true \
212212
-e DEFAULT_BRANCH=main \
213213
-e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true \
214-
-e FILTER_REGEX_EXCLUDE=".*/test/linters/.*" \
214+
-e FILTER_REGEX_EXCLUDE=".*(/test/linters/|CHANGELOG.md).*" \
215215
-e VALIDATE_ALL_CODEBASE=true \
216216
-e VALIDATE_ARM=true \
217217
-e VALIDATE_CLOUDFORMATION=true \

0 commit comments

Comments
 (0)