@@ -238,7 +238,7 @@ export const getResourceProviderFromFilePath = (filePath: string): string | unde
238
238
239
239
async function processTypeSpec ( ctx : PRContext , labelContext : LabelContext ) : Promise < boolean > {
240
240
console . log ( "ENTER definition processTypeSpec ") ;
241
- const typeSpecLabel = new Label ( "TypeSpec" , labelContext . present ) ;
241
+ const typeSpecLabel = new Label ( "TypeSpec" ) ;
242
242
// By default this label should not be present. We may determine later in this function that it should be present after all.
243
243
typeSpecLabel . shouldBePresent = false ;
244
244
const handlers : ChangeHandler [ ] = [ ] ;
@@ -421,7 +421,7 @@ function processPRTypeLabel(
421
421
types : PRType [ ] ,
422
422
labelContext : LabelContext ,
423
423
) : boolean {
424
- const label = new Label ( labelName , labelContext . present ) ;
424
+ const label = new Label ( labelName ) ;
425
425
label . shouldBePresent = types . includes ( labelName ) ;
426
426
427
427
label . applyStateChange ( labelContext . toAdd , labelContext . toRemove ) ;
@@ -431,10 +431,7 @@ function processPRTypeLabel(
431
431
async function processSuppression ( context : PRContext , labelContext : LabelContext ) {
432
432
console . log ( "ENTER definition processSuppression" ) ;
433
433
434
- const suppressionReviewRequiredLabel = new Label (
435
- "SuppressionReviewRequired" ,
436
- labelContext . present ,
437
- ) ;
434
+ const suppressionReviewRequiredLabel = new Label ( "SuppressionReviewRequired" ) ;
438
435
// By default this label should not be present. We may determine later in this function that it should be present after all.
439
436
suppressionReviewRequiredLabel . shouldBePresent = false ;
440
437
const handlers : ChangeHandler [ ] = [ ] ;
@@ -536,7 +533,7 @@ async function processRPaaS(
536
533
labelContext : LabelContext ,
537
534
) : Promise < { rpaasLabelShouldBePresent: boolean } > {
538
535
console. log ( "ENTER definition processRPaaS" ) ;
539
- const rpaasLabel = new Label ( "RPaaS" , labelContext . present ) ;
536
+ const rpaasLabel = new Label ( "RPaaS" ) ;
540
537
// By default this label should not be present. We may determine later in this function that it should be present after all.
541
538
rpaasLabel . shouldBePresent = false ;
542
539
@@ -572,7 +569,7 @@ async function processNewRPNamespace(
572
569
resourceManagerLabelShouldBePresent : boolean ,
573
570
) : Promise < { newRPNamespaceLabelShouldBePresent: boolean } > {
574
571
console. log ( "ENTER definition processNewRPNamespace" ) ;
575
- const newRPNamespaceLabel = new Label ( "new-rp-namespace" , labelContext . present ) ;
572
+ const newRPNamespaceLabel = new Label ( "new-rp-namespace" ) ;
576
573
// By default this label should not be present. We may determine later in this function that it should be present after all.
577
574
newRPNamespaceLabel . shouldBePresent = false ;
578
575
const handlers : ChangeHandler [ ] = [ ] ;
@@ -627,10 +624,7 @@ async function processNewRpNamespaceWithoutRpaasLabel(
627
624
rpaasLabelShouldBePresent : boolean ,
628
625
) : Promise < boolean > {
629
626
console . log ( "ENTER definition processNewRpNamespaceWithoutRpaasLabel" ) ;
630
- const ciNewRPNamespaceWithoutRpaaSLabel = new Label (
631
- "CI-NewRPNamespaceWithoutRPaaS" ,
632
- labelContext . present ,
633
- ) ;
627
+ const ciNewRPNamespaceWithoutRpaaSLabel = new Label ( "CI-NewRPNamespaceWithoutRPaaS" ) ;
634
628
// By default this label should not be present. We may determine later in this function that it should be present after all.
635
629
ciNewRPNamespaceWithoutRpaaSLabel . shouldBePresent = false ;
636
630
@@ -724,10 +718,7 @@ async function processRpaasRpNotInPrivateRepoLabel(
724
718
rpFolderNames : string [ ] ,
725
719
) : Promise < { ciRpaasRPNotInPrivateRepoLabelShouldBePresent : boolean } > {
726
720
console. log ( "ENTER definition processRpaasRpNotInPrivateRepoLabel" ) ;
727
- const ciRpaasRPNotInPrivateRepoLabel = new Label (
728
- "CI-RpaaSRPNotInPrivateRepo" ,
729
- labelContext . present ,
730
- ) ;
721
+ const ciRpaasRPNotInPrivateRepoLabel = new Label ( "CI-RpaaSRPNotInPrivateRepo" ) ;
731
722
// By default this label should not be present. We may determine later in this function that it should be present after all.
732
723
ciRpaasRPNotInPrivateRepoLabel . shouldBePresent = false ;
733
724
0 commit comments