Skip to content

fix(workflows): skip empty configFile in lint_commits#39

Merged
jr200 merged 1 commit into
masterfrom
fix/commitlint-empty-configfile
Apr 21, 2026
Merged

fix(workflows): skip empty configFile in lint_commits#39
jr200 merged 1 commit into
masterfrom
fix/commitlint-empty-configfile

Conversation

@jr200

@jr200 jr200 commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • lint_commits reusable workflow passed configFile: '' to wagoid action when caller didn't set it, causing EISDIR as cosmiconfig treated the workspace dir as a file path
  • Split into two conditional steps: auto-detect when input empty, explicit when set

Context

Failure seen on https://github.com/whengas/whengas-ui/pull/45 (commitlint job):

EISDIR: illegal operation on a directory, read
  at #readConfiguration (cosmiconfig/dist/Explorer.js)

Test plan

  • Merge, re-run CI on whengas/whengas-ui#45, confirm commitlint green

Passing configFile as empty string made wagoid/commitlint-github-action
fail with EISDIR because cosmiconfig treated the workspace directory as
a config file path. Use two conditional steps so the input is only
forwarded when the caller actually set it; otherwise rely on
cosmiconfig auto-detection.
@jr200 jr200 merged commit 66206e6 into master Apr 21, 2026
2 checks passed
@jr200 jr200 deleted the fix/commitlint-empty-configfile branch April 21, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant