Skip to content

fix(lint-md-action): unify basePath in getConfig() and add JSON parse error handling#18

Merged
luojiyin1987 merged 1 commit into
mainfrom
fix/config-improvements
Jun 16, 2026
Merged

fix(lint-md-action): unify basePath in getConfig() and add JSON parse error handling#18
luojiyin1987 merged 1 commit into
mainfrom
fix/config-improvements

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

改动

  1. getConfig() 统一使用 this.basePath,不再重复 process.env.GITHUB_WORKSPACE || process.cwd() 逻辑
  2. JSON.parse 加 try-catch,无效配置文件时 warning 并返回空配置,不再崩溃

@luojiyin1987 luojiyin1987 merged commit a5e8e51 into main Jun 16, 2026
3 checks passed
@luojiyin1987 luojiyin1987 deleted the fix/config-improvements branch June 16, 2026 02:31
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