|
@@ -222,81 +222,6 @@ const ConnectNewRepo: React.FC = () => {
|
|
|
/>
|
|
/>
|
|
|
</HelperContainer>
|
|
</HelperContainer>
|
|
|
|
|
|
|
|
- <Heading>Automatic pull request deployments</Heading>
|
|
|
|
|
- <Helper>
|
|
|
|
|
- If you enable this option, the new pull requests will be automatically
|
|
|
|
|
- deployed.
|
|
|
|
|
- </Helper>
|
|
|
|
|
- <CheckboxWrapper>
|
|
|
|
|
- <CheckboxRow
|
|
|
|
|
- label="Enable automatic deploys"
|
|
|
|
|
- checked={enableAutomaticDeployments}
|
|
|
|
|
- toggle={() =>
|
|
|
|
|
- setEnableAutomaticDeployments(!enableAutomaticDeployments)
|
|
|
|
|
- }
|
|
|
|
|
- wrapperStyles={{
|
|
|
|
|
- disableMargin: true,
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- </CheckboxWrapper>
|
|
|
|
|
-
|
|
|
|
|
- <Heading>Disable new comments for new deployments</Heading>
|
|
|
|
|
- <Helper>
|
|
|
|
|
- When enabled new comments will not be created for new deployments.
|
|
|
|
|
- Instead the last comment will be updated.
|
|
|
|
|
- </Helper>
|
|
|
|
|
- <CheckboxWrapper>
|
|
|
|
|
- <CheckboxRow
|
|
|
|
|
- label="Disable new comments for deployments"
|
|
|
|
|
- checked={isNewCommentsDisabled}
|
|
|
|
|
- toggle={() => setIsNewCommentsDisabled(!isNewCommentsDisabled)}
|
|
|
|
|
- wrapperStyles={{
|
|
|
|
|
- disableMargin: true,
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
- </CheckboxWrapper>
|
|
|
|
|
-
|
|
|
|
|
- <Heading>Deploy from branches</Heading>
|
|
|
|
|
- <Helper>
|
|
|
|
|
- Choose the list of branches that you want to deploy changes from.
|
|
|
|
|
- </Helper>
|
|
|
|
|
- <BranchFilterSelector
|
|
|
|
|
- onChange={setDeployBranches}
|
|
|
|
|
- options={availableBranches}
|
|
|
|
|
- value={deployBranches}
|
|
|
|
|
- showLoading={isLoadingBranches}
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
- <Heading>Select allowed branches</Heading>
|
|
|
|
|
- <Helper>
|
|
|
|
|
- If the pull request has a base branch included in this list, it will be
|
|
|
|
|
- allowed to be deployed.
|
|
|
|
|
- <br />
|
|
|
|
|
- (Leave empty to allow all branches)
|
|
|
|
|
- </Helper>
|
|
|
|
|
- <BranchFilterSelector
|
|
|
|
|
- onChange={setBaseBranches}
|
|
|
|
|
- options={availableBranches}
|
|
|
|
|
- value={baseBranches}
|
|
|
|
|
- showLoading={isLoadingBranches}
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
- <Heading>Namespace labels</Heading>
|
|
|
|
|
- <Helper>
|
|
|
|
|
- Custom labels to be injected into the Kubernetes namespace created for
|
|
|
|
|
- each deployment.
|
|
|
|
|
- </Helper>
|
|
|
|
|
- <NamespaceLabels
|
|
|
|
|
- values={namespaceLabels}
|
|
|
|
|
- setValues={(x: KeyValueType[]) => {
|
|
|
|
|
- let labels: KeyValueType[] = [];
|
|
|
|
|
- x.forEach((entry) => {
|
|
|
|
|
- labels.push({ key: entry.key, value: entry.value });
|
|
|
|
|
- });
|
|
|
|
|
- setNamespaceLabels(labels);
|
|
|
|
|
- }}
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
<ActionContainer>
|
|
<ActionContainer>
|
|
|
<SaveButton
|
|
<SaveButton
|
|
|
text="Add repository"
|
|
text="Add repository"
|