Skip to content

Commit 503461e

Browse files
committed
src/Logic: delete unqualified testing branch
... to maintain backwards compatibility with existing Hoff maintained repos.
1 parent f69a1ef commit 503461e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Logic.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ runAction :: ProjectConfiguration -> Action a -> Operation a
163163
runAction config = foldFree $ \case
164164
TryIntegrate message (pr, ref, sha) alwaysAddMergeCommit cont -> do
165165
doGit $ ensureCloned config
166+
167+
-- Needed for backwards compatibility with existing repositories
168+
-- as we now test at testing/<pr_id> instead of testing.
169+
-- When no repositories have a testing branch, this can safely be removed.
170+
_ <- doGit $ Git.deleteRemoteBranch $ Git.Branch $ Config.testBranch config
171+
166172
shaOrFailed <- doGit $ Git.tryIntegrate
167173
message
168174
ref

0 commit comments

Comments
 (0)