From 160289d73b7af136a773ed57605cf1b9a53d78f3 Mon Sep 17 00:00:00 2001 From: Alex Tugarev Date: Tue, 19 Sep 2023 06:02:13 +0000 Subject: [PATCH] mimic old behavior for pre-existing projects --- components/gitpod-protocol/src/teams-projects-protocol.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/gitpod-protocol/src/teams-projects-protocol.ts b/components/gitpod-protocol/src/teams-projects-protocol.ts index 057442ace89205..f1ad56383f40b8 100644 --- a/components/gitpod-protocol/src/teams-projects-protocol.ts +++ b/components/gitpod-protocol/src/teams-projects-protocol.ts @@ -84,7 +84,9 @@ export namespace Project { export function getPrebuildBranchStrategy(project: Project): ProjectSettings.PrebuildBranchStrategy { if (typeof project.settings?.enablePrebuilds === "undefined") { - return "defaultBranch"; // default value for `settings.prebuildDefaultBranchOnly` + // returning "all branches" to mimic the default value of projects which were added + // before introduction of persisted settings for prebuilds. + return "allBranches"; } if (typeof project.settings?.prebuildDefaultBranchOnly === "undefined") { return "defaultBranch"; // default value for `settings.prebuildDefaultBranchOnly`