File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import * as configUtils from "./config-utils";
1818import { addDiagnostic , makeDiagnostic } from "./diagnostics" ;
1919import { EnvVar } from "./environment" ;
2020import { FeatureEnablement , Feature } from "./feature-flags" ;
21+ import { decodeGitFilePath } from "./git-utils" ;
2122import { isScannedLanguage , Language } from "./languages" ;
2223import { Logger , withGroupAsync } from "./logging" ;
2324import { DatabaseCreationTimings , EventReport } from "./status-report" ;
@@ -393,7 +394,9 @@ function getDiffRanges(
393394 // Diff-informed queries expect the file path to be absolute.
394395 const filename = path . join (
395396 actionsUtil . getRequiredInput ( "checkout_path" ) ,
396- fileDiff . filename ,
397+ // GitHub API preserves non-ASCII characters in file paths as-is, so we only
398+ // need to decode the special characters.
399+ decodeGitFilePath ( fileDiff . filename ) ,
397400 ) ;
398401
399402 let currentLine = 0 ;
You can’t perform that action at this time.
0 commit comments