refactor!: remove the diff-size cap and its gate.diff-size step
This commit is contained in:
20 files changed
+132
-241
No files matched your search
@@ -48,7 +48,7 @@ const { catalog, catalogError } = storeToRefs(store);
|
||||
onMounted(store.load);
|
||||
|
||||
const resources = computed(() => resourcesForPage(catalog.value, "tasks"));
|
||||
const policy=computed(()=>store.drafts[POLICY]?.value as {diff_cap_lines:number;notify_webhook:string;notify_min_severity:string;notify_secret:{engine:string;key:string}}|undefined);
|
||||
const policy=computed(()=>store.drafts[POLICY]?.value as {notify_webhook:string;notify_min_severity:string;notify_secret:{engine:string;key:string}}|undefined);
|
||||
const limits = computed(() => store.drafts[KIND]?.value as ExecutionSettings | undefined);
|
||||
const error = computed(() => store.pageErrorFor(KIND));
|
||||
|
||||
@@ -84,9 +84,6 @@ async function restoreWorkflows(): Promise<void> {
|
||||
</p>
|
||||
|
||||
<template v-if="policy">
|
||||
<SettingRow label="Maximum changed lines" hint="Applied to new tasks. 0 disables the limit." for="task-diff-cap">
|
||||
<div class="flex flex-wrap items-center gap-3"><Input id="task-diff-cap" v-model.number="policy.diff_cap_lines" type="number" min="0" class="max-w-40" /><DraftHint :kind="POLICY" path="diff_cap_lines" /></div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Alert webhook" hint="Receives each raised and resolved alert. Empty disables." for="task-notify">
|
||||
<div class="flex flex-wrap items-center gap-3"><Input id="task-notify" v-model="policy.notify_webhook" type="url" class="max-w-md" /><DraftHint :kind="POLICY" path="notify_webhook" /></div>
|
||||
</SettingRow>
|
||||
|
||||
@@ -155,7 +155,6 @@ const TYPE_TITLES: Record<string, string> = {
|
||||
"repo.commit": "Commit",
|
||||
"repo.open-pr": "Open pull request",
|
||||
"gate.repository": "Repository",
|
||||
"gate.diff-size": "Diff size",
|
||||
"gate.diff-rules": "Diff rules",
|
||||
"forge.comment": "Comment",
|
||||
"forge.close-issue": "Close issue",
|
||||
|
||||
Reference in new issue
Block a user