Skip to content

Commit

Permalink
mimic old behavior for pre-existing projects
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Sep 19, 2023
1 parent e721b96 commit 160289d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/gitpod-protocol/src/teams-projects-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 160289d

Please sign in to comment.