-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1275 GitLab project configuration property
- Loading branch information
1 parent
dbfe2c6
commit 563f81b
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...nents/framework/properties/gitlab.property.GitLabProjectConfigurationPropertyType/Form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import {Form, Input, InputNumber} from "antd"; | ||
import {prefixedFormName} from "@components/form/formUtils"; | ||
import SelectIssueService from "@components/extension/issues/SelectIssueService"; | ||
|
||
export default function PropertyForm({prefix}) { | ||
return ( | ||
<> | ||
<Form.Item | ||
label="Configuration" | ||
extra="Name of the GitLab configuration in Ontrack" | ||
name={prefixedFormName(prefix, ['configuration', 'name'])} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Repository" | ||
extra="GitLab repository, ie. project/name" | ||
name={prefixedFormName(prefix, 'repository')} | ||
> | ||
<Input/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Indexation interval" | ||
extra="How often to index the repository, in minutes. Use 0 to disable indexation." | ||
name={prefixedFormName(prefix, 'indexationInterval')} | ||
> | ||
<InputNumber min={0}/> | ||
</Form.Item> | ||
<Form.Item | ||
label="Issues" | ||
extra="Identifier for the issue service" | ||
name={prefixedFormName(prefix, 'issueServiceConfigurationIdentifier')} | ||
> | ||
<SelectIssueService | ||
self="GitLab issues" | ||
/> | ||
</Form.Item> | ||
</> | ||
) | ||
} |
6 changes: 6 additions & 0 deletions
6
...ramework/properties/gitlab.property.GitLabProjectConfigurationPropertyType/FormPrepare.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default function FormPrepare(value) { | ||
return { | ||
...value, | ||
configuration: value?.configuration?.name, | ||
} | ||
} |