@@ -16,7 +16,6 @@ import {
1616} from "./init" ;
1717import { KnownLanguage } from "./languages" ;
1818import { getRunnerLogger } from "./logging" ;
19- import { parseRepositoryNwo } from "./repository" ;
2019import {
2120 createFeatures ,
2221 LoggedMessage ,
@@ -456,7 +455,6 @@ test("file coverage information enabled when debugMode is true", async (t) => {
456455 t . true (
457456 await getFileCoverageInformationEnabled (
458457 true , // debugMode
459- parseRepositoryNwo ( "github/codeql-action" ) ,
460458 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
461459 { } ,
462460 getRunnerLogger ( true ) ,
@@ -470,21 +468,6 @@ test("file coverage information enabled when not analyzing a pull request", asyn
470468 t . true (
471469 await getFileCoverageInformationEnabled (
472470 false , // debugMode
473- parseRepositoryNwo ( "github/codeql-action" ) ,
474- createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
475- { } ,
476- getRunnerLogger ( true ) ,
477- ) ,
478- ) ;
479- } ) ;
480-
481- test ( "file coverage information enabled when owner is not 'github'" , async ( t ) => {
482- sinon . stub ( actionsUtil , "isAnalyzingPullRequest" ) . returns ( true ) ;
483-
484- t . true (
485- await getFileCoverageInformationEnabled (
486- false , // debugMode
487- parseRepositoryNwo ( "other-org/some-repo" ) ,
488471 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
489472 { } ,
490473 getRunnerLogger ( true ) ,
@@ -498,7 +481,6 @@ test("file coverage information enabled when feature flag is not enabled", async
498481 t . true (
499482 await getFileCoverageInformationEnabled (
500483 false , // debugMode
501- parseRepositoryNwo ( "github/codeql-action" ) ,
502484 createFeatures ( [ ] ) ,
503485 { } ,
504486 getRunnerLogger ( true ) ,
@@ -512,7 +494,6 @@ test("file coverage information disabled when all conditions for skipping are me
512494 t . false (
513495 await getFileCoverageInformationEnabled (
514496 false , // debugMode
515- parseRepositoryNwo ( "github/codeql-action" ) ,
516497 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
517498 { } ,
518499 getRunnerLogger ( true ) ,
@@ -529,7 +510,6 @@ test("file coverage information enabled when repository property enables it on P
529510 t . true (
530511 await getFileCoverageInformationEnabled (
531512 false , // debugMode
532- parseRepositoryNwo ( "github/codeql-action" ) ,
533513 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
534514 {
535515 [ RepositoryPropertyName . ENABLE_FILE_COVERAGE_ON_PRS ] : true ,
@@ -561,7 +541,6 @@ test("file coverage information enabled when env var enables it on PRs", async (
561541 t . true (
562542 await getFileCoverageInformationEnabled (
563543 false , // debugMode
564- parseRepositoryNwo ( "github/codeql-action" ) ,
565544 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
566545 { } ,
567546 logger ,
@@ -591,7 +570,6 @@ test("file coverage information disabled when env var disables it on PRs", async
591570 t . false (
592571 await getFileCoverageInformationEnabled (
593572 false , // debugMode
594- parseRepositoryNwo ( "other-org/some-repo" ) ,
595573 createFeatures ( [ ] ) ,
596574 { } ,
597575 logger ,
@@ -618,7 +596,6 @@ test("file coverage information disabled when repository property disables it on
618596 t . false (
619597 await getFileCoverageInformationEnabled (
620598 false , // debugMode
621- parseRepositoryNwo ( "other-org/some-repo" ) ,
622599 createFeatures ( [ ] ) ,
623600 {
624601 [ RepositoryPropertyName . ENABLE_FILE_COVERAGE_ON_PRS ] : false ,
@@ -653,7 +630,6 @@ test("file coverage env var 'false' takes precedence over repository property 't
653630 t . false (
654631 await getFileCoverageInformationEnabled (
655632 false , // debugMode
656- parseRepositoryNwo ( "github/codeql-action" ) ,
657633 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
658634 {
659635 [ RepositoryPropertyName . ENABLE_FILE_COVERAGE_ON_PRS ] : true ,
@@ -695,7 +671,6 @@ test("file coverage env var takes precedence over repository property", async (t
695671 t . true (
696672 await getFileCoverageInformationEnabled (
697673 false , // debugMode
698- parseRepositoryNwo ( "github/codeql-action" ) ,
699674 createFeatures ( [ Feature . SkipFileCoverageOnPrs ] ) ,
700675 {
701676 [ RepositoryPropertyName . ENABLE_FILE_COVERAGE_ON_PRS ] : true ,
0 commit comments