Skip to content

Commit 6e7e70a

Browse files
committed
fix: use helpUrl from config file when present
1 parent a5ab401 commit 6e7e70a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/action.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ function getOptsFromConfig(config) {
9191
}
9292
}
9393

94-
const formatErrors = (lintedCommits) =>
94+
const formatErrors = (lintedCommits, { config }) =>
9595
format(
9696
{ results: lintedCommits.map((commit) => commit.lintResult) },
9797
{
9898
color: true,
99-
helpUrl: getInput('helpURL'),
99+
helpUrl: config.helpUrl || getInput('helpURL'),
100100
},
101101
)
102102

@@ -129,7 +129,7 @@ const showLintResults = async ([from, to]) => {
129129
hash: commit.hash,
130130
})),
131131
)
132-
const formattedResults = formatErrors(lintedCommits)
132+
const formattedResults = formatErrors(lintedCommits, { config })
133133

134134
generateOutputs(lintedCommits)
135135

0 commit comments

Comments
 (0)