Skip to content

Commit ddd849e

Browse files
committed
fix lint
1 parent dbfc2b6 commit ddd849e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/api-client.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/api-client.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api-client.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ export async function getWorkflowRelativePath(): Promise<string> {
139139
);
140140
const workflowUrl = runsResponse.data.workflow_url;
141141

142-
const requiredWorkflowRegex = /\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/;
143-
if (!workflowUrl || requiredWorkflowRegex.test(workflowUrl)) {
142+
const requiredWorkflowRegex =
143+
/\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/;
144+
if (!workflowUrl || requiredWorkflowRegex.test(workflowUrl as string)) {
144145
// For required workflows, the workflowUrl is invalid so we cannot fetch more informations
145146
// about the workflow.
146147
// However, the path is available in the original response.

0 commit comments

Comments
 (0)