Skip to content

feat: support JSONC config file paths in the default list - #1213

Merged
suzuki-shunsuke merged 1 commit into
mainfrom
feat/support-jsonc-config-files
Sep 21, 2026
Merged

suzuki-shunsuke merged 1 commit into
mainfrom
feat/support-jsonc-config-files

Conversation

@suzuki-shunsuke

Copy link
Copy Markdown
Owner

Overview

Closes #1212.

Renovate added JSONC support in renovatebot/renovate#43677, so .jsonc variants are now part of Renovate's default config file names. This action's default list still only covered .json, .json5, and .renovaterc, so a repository using renovate.jsonc was silently not validated (the action reported "No configuration file is found" when no other config file existed).

Changes

Add the four .jsonc paths to the list of files validated when config_file_path is not set:

  • renovate.jsonc
  • .github/renovate.jsonc
  • .gitlab/renovate.jsonc
  • .renovaterc.jsonc

The same four paths are added to the config_file_path input description in action.yaml and to the corresponding list in README.md, keeping the existing ordering (each .jsonc entry goes right after its .json counterpart, matching Renovate's own configFileNames order).

The full default list is now:

  • .github/renovate.json
  • .github/renovate.jsonc
  • .github/renovate.json5
  • .gitlab/renovate.json
  • .gitlab/renovate.jsonc
  • .gitlab/renovate.json5
  • .renovaterc.json
  • .renovaterc.jsonc
  • .renovaterc.json5
  • renovate.json
  • renovate.jsonc
  • renovate.json5
  • .renovaterc

This only affects the default behaviour; passing config_file_path explicitly is unchanged.

🤖 Generated with Claude Code

Renovate added JSONC support in renovatebot/renovate#43677, so
renovate.jsonc, .github/renovate.jsonc, .gitlab/renovate.jsonc, and
.renovaterc.jsonc are now part of Renovate's default config file names.
Add them to the list of files this action validates when config_file_path
is not set, and document them in action.yaml and README.md.

Closes #1212

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 21, 2026
@suzuki-shunsuke suzuki-shunsuke added this to the v2.2.0 milestone Sep 21, 2026
@suzuki-shunsuke
suzuki-shunsuke merged commit b850926 into main Sep 21, 2026
3 checks passed
@suzuki-shunsuke
suzuki-shunsuke deleted the feat/support-jsonc-config-files branch September 21, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSONC file paths are missing in the default list of Renovate file paths

1 participant