Skip to content

Commit b660efd

Browse files
authored
Merge pull request #3103 from github/mbg/fix/category-check
Fix `runInterpretResultsFor` using the wrong `AnalysisConfig` for Code Quality `category` fix
2 parents f374a62 + e49458b commit b660efd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/analyze-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ export async function runQueries(
780780
// If this is a Code Quality analysis, correct the category to one
781781
// accepted by the Code Quality backend.
782782
let category = automationDetailsId;
783-
if (dbAnalysisConfig.kind === analyses.AnalysisKind.CodeQuality) {
783+
if (analysis.kind === analyses.AnalysisKind.CodeQuality) {
784784
category = fixCodeQualityCategory(logger, automationDetailsId);
785785
}
786786

0 commit comments

Comments
 (0)