@@ -557,7 +557,7 @@ func TestShouldUpdatePR(t *testing.T) {
557557 IsDraftValue : true ,
558558 },
559559 updateConfig : UpdateConfig {
560- IgnoreDrafts : boolVal (true ),
560+ IgnoreDrafts : new (true ),
561561 },
562562 expectingUpdate : false ,
563563 },
@@ -566,7 +566,7 @@ func TestShouldUpdatePR(t *testing.T) {
566566 IsDraftValue : false ,
567567 },
568568 updateConfig : UpdateConfig {
569- IgnoreDrafts : boolVal (true ),
569+ IgnoreDrafts : new (true ),
570570 },
571571 expectingUpdate : true ,
572572 },
@@ -576,7 +576,7 @@ func TestShouldUpdatePR(t *testing.T) {
576576 LabelValue : []string {"trigger" },
577577 },
578578 updateConfig : UpdateConfig {
579- IgnoreDrafts : boolVal (true ),
579+ IgnoreDrafts : new (true ),
580580 Trigger : Signals {
581581 Labels : []string {"trigger" },
582582 },
@@ -589,7 +589,7 @@ func TestShouldUpdatePR(t *testing.T) {
589589 LabelValue : []string {"trigger" },
590590 },
591591 updateConfig : UpdateConfig {
592- IgnoreDrafts : boolVal (true ),
592+ IgnoreDrafts : new (true ),
593593 Trigger : Signals {
594594 Labels : []string {"trigger" },
595595 },
@@ -602,7 +602,7 @@ func TestShouldUpdatePR(t *testing.T) {
602602 LabelValue : []string {"ignore" },
603603 },
604604 updateConfig : UpdateConfig {
605- IgnoreDrafts : boolVal (true ),
605+ IgnoreDrafts : new (true ),
606606 Ignore : Signals {
607607 Labels : []string {"ignore" },
608608 },
@@ -615,7 +615,7 @@ func TestShouldUpdatePR(t *testing.T) {
615615 LabelValue : []string {"ignore" },
616616 },
617617 updateConfig : UpdateConfig {
618- IgnoreDrafts : boolVal (true ),
618+ IgnoreDrafts : new (true ),
619619 Ignore : Signals {
620620 Labels : []string {"ignore" },
621621 },
@@ -628,7 +628,7 @@ func TestShouldUpdatePR(t *testing.T) {
628628 LabelValue : []string {"ignore" , "trigger" },
629629 },
630630 updateConfig : UpdateConfig {
631- IgnoreDrafts : boolVal (true ),
631+ IgnoreDrafts : new (true ),
632632 Ignore : Signals {
633633 Labels : []string {"ignore" },
634634 },
@@ -644,7 +644,7 @@ func TestShouldUpdatePR(t *testing.T) {
644644 LabelValue : []string {"ignore" , "trigger" },
645645 },
646646 updateConfig : UpdateConfig {
647- IgnoreDrafts : boolVal (true ),
647+ IgnoreDrafts : new (true ),
648648 Ignore : Signals {
649649 Labels : []string {"ignore" },
650650 },
@@ -659,7 +659,7 @@ func TestShouldUpdatePR(t *testing.T) {
659659 IsDraftValue : true ,
660660 },
661661 updateConfig : UpdateConfig {
662- IgnoreDrafts : boolVal (true ),
662+ IgnoreDrafts : new (true ),
663663 Ignore : Signals {
664664 Labels : []string {"ignore" },
665665 },
@@ -671,7 +671,7 @@ func TestShouldUpdatePR(t *testing.T) {
671671 IsDraftValue : true ,
672672 },
673673 updateConfig : UpdateConfig {
674- IgnoreDrafts : boolVal (true ),
674+ IgnoreDrafts : new (true ),
675675 Trigger : Signals {
676676 Labels : []string {"trigger" },
677677 },
@@ -822,7 +822,7 @@ func TestShouldUpdatePR(t *testing.T) {
822822 SuccessStatusesValue : []string {"status1" },
823823 },
824824 updateConfig : UpdateConfig {
825- IgnoreDrafts : boolVal (true ),
825+ IgnoreDrafts : new (true ),
826826 RequiredStatuses : []string {"status1" , "status2" },
827827 },
828828 expectingUpdate : false ,
@@ -833,7 +833,7 @@ func TestShouldUpdatePR(t *testing.T) {
833833 SuccessStatusesValue : []string {"status1" , "status2" },
834834 },
835835 updateConfig : UpdateConfig {
836- IgnoreDrafts : boolVal (true ),
836+ IgnoreDrafts : new (true ),
837837 RequiredStatuses : []string {"status1" , "status2" },
838838 },
839839 expectingUpdate : false ,
@@ -844,7 +844,7 @@ func TestShouldUpdatePR(t *testing.T) {
844844 SuccessStatusesValue : []string {"status1" },
845845 },
846846 updateConfig : UpdateConfig {
847- IgnoreDrafts : boolVal (true ),
847+ IgnoreDrafts : new (true ),
848848 RequiredStatuses : []string {"status1" , "status2" },
849849 },
850850 expectingUpdate : false ,
@@ -855,7 +855,7 @@ func TestShouldUpdatePR(t *testing.T) {
855855 SuccessStatusesValue : []string {"status1" , "status2" },
856856 },
857857 updateConfig : UpdateConfig {
858- IgnoreDrafts : boolVal (true ),
858+ IgnoreDrafts : new (true ),
859859 RequiredStatuses : []string {"status1" , "status2" },
860860 },
861861 expectingUpdate : true ,
@@ -872,7 +872,3 @@ func TestShouldUpdatePR(t *testing.T) {
872872 })
873873 }
874874}
875-
876- func boolVal (b bool ) * bool {
877- return & b
878- }
0 commit comments