Skip to content

Commit

Permalink
add "Prebuild the default branch only" checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Sep 15, 2023
1 parent 7f8bdd2 commit 7af5ad1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/dashboard/src/projects/ProjectSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ export default function ProjectSettingsView() {
/>
{enablePrebuilds && (
<>
<CheckboxInputField
label="Prebuild the default branch only"
hint="Commits on other branches will be ignored."
disabled={!enablePrebuilds}
checked={project.settings?.prebuildDefaultBranchOnly ?? false}
onChange={(checked) => updateProjectSettings({ prebuildDefaultBranchOnly: checked })}
/>
<InputField label="Workspace machine type" disabled={!enablePrebuilds}>
<div className="max-w-md">
<SelectWorkspaceClassComponent
Expand Down

0 comments on commit 7af5ad1

Please sign in to comment.