Merge pull request !2951 from rhodecode-enterprise-ce feature/RCCE-386_add_ai_code_review_checkbox
feature: implements AI code review PR checkbox; adds AI PR settings
This commit is contained in:
commit
e1a67b7306
12 changed files with 184 additions and 48 deletions
|
|
@ -247,6 +247,31 @@
|
|||
</label>
|
||||
</div>
|
||||
% endif
|
||||
|
||||
% if c.ai_enabled and c.rhodecode_edition_id == 'EE':
|
||||
<div class="pull-request-settings" style="margin-left: 220px">
|
||||
${h.checkbox('run_ai_codereview', checked=c.ai_pr_review, value=True)}
|
||||
<label for="run_ai_codereview">
|
||||
${h.literal(_('Run run AI code review'))}
|
||||
</label>
|
||||
</div>
|
||||
% elif not c.ai_enabled:
|
||||
<div class="pull-request-settings" style="margin-left: 220px">
|
||||
${h.checkbox('run_ai_codereview', checked=False, value=True, disabled=True, **{'class': 'disabled-checkbox'})}
|
||||
<label for="run_ai_codereview" class="disabled-label">
|
||||
${h.literal(_('Run AI code review'))}
|
||||
<span class="tooltip" title="${_('Enable AI features to use this checkbox')}">[?]</span>
|
||||
</label>
|
||||
</div>
|
||||
% elif c.rhodecode_edition_id != 'EE':
|
||||
<div class="pull-request-settings" style="margin-left: 220px">
|
||||
${h.checkbox('run_ai_codereview', checked=False, value=True, disabled=True, **{'class': 'disabled-checkbox'})}
|
||||
<label for="run_ai_codereview" class="disabled-label">
|
||||
${h.literal(_('Run AI code review'))}
|
||||
<span class="ee-feature-label">[EE Only]</span>
|
||||
</label>
|
||||
</div>
|
||||
% endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue