@@ -395,7 +395,7 @@ eventLoopSpec = parallel $ do
395395 [
396396 Logic. PullRequestOpened pr4 branch baseBranch c4 " Add Leon test results" " deckard" ,
397397 Logic. CommentAdded pr4 " rachael" " @bot merge" ,
398- Logic. BuildStatusChanged c4 BuildSucceeded
398+ Logic. BuildStatusChanged [ Branch " integration/4 " ] c4 BuildSucceeded
399399 ]
400400 history `shouldBe`
401401 [ " * c4"
@@ -424,7 +424,7 @@ eventLoopSpec = parallel $ do
424424 [
425425 Logic. PullRequestOpened pr4 branch baseBranch c4 " Add Leon test results" " deckard" ,
426426 Logic. CommentAdded pr4 " rachael" " @bot merge" ,
427- Logic. BuildStatusChanged c4 (BuildFailed Nothing )
427+ Logic. BuildStatusChanged [ Branch " integration/4 " ] c4 (BuildFailed Nothing )
428428 ]
429429 -- the build failed, so master's history is unchanged
430430 -- ... and the integration/4 branch is kept for inpection of the CI build
@@ -451,7 +451,7 @@ eventLoopSpec = parallel $ do
451451 [
452452 Logic. PullRequestOpened pr4 branch baseBranch c4 " Deploy tests!" " deckard" ,
453453 Logic. CommentAdded pr4 " rachael" " @bot merge and tag" ,
454- Logic. BuildStatusChanged c4 BuildSucceeded
454+ Logic. BuildStatusChanged [ Branch " integration/4 " ] c4 BuildSucceeded
455455 ]
456456 history `shouldBe`
457457 [ " * c4"
@@ -505,7 +505,7 @@ eventLoopSpec = parallel $ do
505505
506506 -- The rebased commit should have been pushed to the remote repository
507507 -- 'integration' branch. Tell that building it succeeded.
508- void $ runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
508+ void $ runLoop state [Logic. BuildStatusChanged [ Branch " integration/4 " ] rebasedSha BuildSucceeded ]
509509
510510 history `shouldBe`
511511 [ " * Merge #4"
@@ -563,7 +563,7 @@ eventLoopSpec = parallel $ do
563563
564564 -- The rebased commit should have been pushed to the remote repository
565565 -- 'integration' branch. Tell that building it succeeded.
566- void $ runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
566+ void $ runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
567567
568568 history `shouldBe`
569569 [ " * Merge #6"
@@ -600,7 +600,7 @@ eventLoopSpec = parallel $ do
600600
601601 let [rebasedSha] = integrationShas state
602602
603- void $ runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
603+ void $ runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
604604
605605 history `shouldBe`
606606 [ " * Merge #6"
@@ -658,7 +658,7 @@ eventLoopSpec = parallel $ do
658658
659659 let [rebasedSha] = integrationShas state
660660
661- void $ runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
661+ void $ runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
662662
663663 history `shouldBe`
664664 [ " * Merge #6"
@@ -722,12 +722,12 @@ eventLoopSpec = parallel $ do
722722
723723 -- The rebased commit should have been pushed to the remote repository
724724 -- 'integration' branch. Tell that building it succeeded.
725- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
725+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
726726
727727 -- Repeat for the other pull request, which should be the candidate by
728728 -- now.
729729 let [rebasedSha'] = integrationShas state'
730- void $ runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
730+ void $ runLoop state' [Logic. BuildStatusChanged [ Branch " integration/4 " ] rebasedSha' BuildSucceeded ]
731731
732732 history `shouldBe`
733733 [ " * c4"
@@ -761,10 +761,10 @@ eventLoopSpec = parallel $ do
761761
762762 let [rebasedSha] = integrationShas state
763763
764- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
764+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
765765
766766 let [rebasedSha'] = integrationShas state'
767- void $ runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
767+ void $ runLoop state' [Logic. BuildStatusChanged [ Branch " integration/4 " ] rebasedSha' BuildSucceeded ]
768768
769769 history `shouldBe`
770770 [ " * c4"
@@ -886,15 +886,15 @@ eventLoopSpec = parallel $ do
886886 -- Extract the sha of the rebased commit from the project state, and
887887 -- tell the loop that building the commit succeeded.
888888 let [rebasedSha] = integrationShas state
889- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
889+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
890890
891891 -- The push should have failed, hence there should still be an
892892 -- integration candidate.
893893 Project. integratedPullRequests state' `shouldSatisfy` (not . null )
894894
895895 -- Again notify build success, now for the new commit.
896896 let [rebasedSha'] = integrationShas state'
897- state'' <- runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
897+ state'' <- runLoop state' [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha' BuildSucceeded ]
898898
899899 -- After the second build success, the pull request should have been
900900 -- integrated properly, so there should not be a new candidate.
@@ -937,11 +937,11 @@ eventLoopSpec = parallel $ do
937937 git [" push" , " origin" , refSpec (c4, masterBranch)]
938938
939939 let [rebasedSha] = integrationShas state
940- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
940+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
941941
942942 -- Again notify build success, now for the new commit.
943943 let [rebasedSha'] = integrationShas state'
944- void $ runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
944+ void $ runLoop state' [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha' BuildSucceeded ]
945945
946946 -- After the second build success, the pull request should have been
947947 -- integrated properly, version should be incremented only once
@@ -1009,11 +1009,11 @@ eventLoopSpec = parallel $ do
10091009 git [" push" , " origin" , refSpec (Git. TagName " v2" )]
10101010
10111011 let [rebasedSha] = integrationShas state
1012- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
1012+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha BuildSucceeded ]
10131013
10141014 -- Again notify build success, now for the new commit.
10151015 let [rebasedSha'] = integrationShas state'
1016- void $ runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
1016+ void $ runLoop state' [Logic. BuildStatusChanged [ Branch " integration/6 " ] rebasedSha' BuildSucceeded ]
10171017
10181018 -- After the second build success, the pull request should have been integrated properly,
10191019 -- version should be incremented only once, and follow version that appeared in the meantime
@@ -1078,7 +1078,7 @@ eventLoopSpec = parallel $ do
10781078 -- Extract the sha of the rebased commit from the project state, and
10791079 -- tell the loop that building the commit succeeded.
10801080 let [rebasedSha] = integrationShas state
1081- void $ runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
1081+ void $ runLoop state [Logic. BuildStatusChanged [ Branch " integration/8 " ] rebasedSha BuildSucceeded ]
10821082
10831083 -- We expect the fixup commit (which was last) to be squashed into c7, so
10841084 -- now c8 is the last commit, and there are no others. Note that if the
@@ -1118,11 +1118,11 @@ eventLoopSpec = parallel $ do
11181118 -- Extract the sha of the rebased commit from the project state, and
11191119 -- tell the loop that building the commit succeeded.
11201120 let [rebasedSha] = integrationShas state
1121- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
1121+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/8 " ] rebasedSha BuildSucceeded ]
11221122
11231123 -- Again notify build success, now for the new commit.
11241124 let [rebasedSha'] = integrationShas state'
1125- void $ runLoop state' [Logic. BuildStatusChanged rebasedSha' BuildSucceeded ]
1125+ void $ runLoop state' [Logic. BuildStatusChanged [ Branch " integration/8 " ] rebasedSha' BuildSucceeded ]
11261126
11271127 -- We expect the fixup commit (which was last) to be squashed into c7, so
11281128 -- now c8 is the last commit, and there are no others. This time c4 and c5
@@ -1168,7 +1168,7 @@ eventLoopSpec = parallel $ do
11681168 -- tell the loop that building the commit succeeded.
11691169
11701170 let [rebasedSha] = integrationShas state
1171- state' <- runLoop state [Logic. BuildStatusChanged rebasedSha BuildSucceeded ]
1171+ state' <- runLoop state [Logic. BuildStatusChanged [ Branch " integration/8 " ] rebasedSha BuildSucceeded ]
11721172
11731173 -- The pull request should not be integrated. Moreover, the presence of
11741174 -- orphan fixups should make the PR ineligible for being a candidate for integration.
@@ -1210,7 +1210,7 @@ eventLoopSpec = parallel $ do
12101210
12111211 state' <- runLoop state
12121212 [
1213- Logic. BuildStatusChanged rebasedSha BuildSucceeded ,
1213+ Logic. BuildStatusChanged [ Branch " integration/8 " ] rebasedSha BuildSucceeded ,
12141214 Logic. CommentAdded pr6 " rachael" " @bot merge"
12151215 ]
12161216
0 commit comments