Skip to content

Commit a9f40c6

Browse files
authored
Merge pull request #3972 from github/henrymercer/code-quality-user-error-categorization
Categorize Code Quality "not enabled" upload failure as user-error
2 parents dd3c803 + d990aa1 commit a9f40c6

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/entry-points.js

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

src/api-client.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ test.serial(
181181
"Code Security must be enabled for this repository to use code scanning",
182182
"Advanced Security must be enabled for this repository to use code scanning",
183183
"Code Scanning is not enabled for this repository. Please enable code scanning in the repository settings.",
184+
"Code quality is not enabled for this repository. Please enable code quality in the repository settings.",
184185
];
185186
const transforms = [
186187
(msg: string) => msg,

src/api-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ function isEnablementError(msg: string) {
311311
/Code Security must be enabled/i,
312312
/Advanced Security must be enabled/i,
313313
/Code Scanning is not enabled/i,
314+
/Code Quality is not enabled/i,
314315
].some((pattern) => pattern.test(msg));
315316
}
316317

0 commit comments

Comments
 (0)