fix: make the merge box button red if some checks fail (#38508)

fix #38506

* 1.26: the "show form" button and "submit form" button are all red if
some checks fail
* 1.27.0: the "show form" button uses primary color, while "submit form"
button is red if some checks fail
* this fix: revert to 1.26
This commit is contained in:
wxiaoguang
2026-07-18 17:44:01 +08:00
committed by GitHub
parent c6791c3c58
commit 7786df34cf

View File

@@ -39,6 +39,7 @@ const mergeButtonStyleClass = computed(() => {
const mergeSelectStyleClass = computed(() => {
if (mergeForm.emptyCommit) return '';
if (mergeStyle.value === mergeStyleManuallyMerged) return 'red';
if (!mergeForm.allOverridableChecksOk) return 'red';
return 'primary';
});