We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
require
1 parent d92577a commit 3559d7dCopy full SHA for 3559d7d
run.js
@@ -1,4 +1,4 @@
1
-const { existsSync } = require('fs')
+const { existsSync, readFileSync } = require('fs')
2
const { resolve } = require('path')
3
const core = require('@actions/core')
4
const github = require('@actions/github')
@@ -31,7 +31,9 @@ const getRangeFromPullRequest = async () => {
31
32
const showLintResults = async ([from, to]) => {
33
const commits = await read({ from, to })
34
- const config = existsSync(configPath) ? await load(require(configPath)) : {}
+ const config = existsSync(configPath)
35
+ ? await load({}, { file: configPath })
36
+ : {}
37
const results = await Promise.all(
38
commits.map(commit => lint(commit, config.rules)),
39
)
0 commit comments