浏览代码

fix(triage): match Linux check verdict to a maintainer-set label (#5066)

When a maintainer has set the Linux support label manually, the check
comment kept printing the automatic verdict, which could contradict the
label (e.g. "does not appear to have native Linux support" alongside
"linux support confirmed"). Derive the verdict from the kept label in
that case; the automatic evidence list is unchanged.

(cherry picked from commit 63fce3dd4d0627a8c725e32b5c365d654186ca00)
Daniel Gibbs 3 天之前
父节点
当前提交
f71b0dae66
共有 1 个文件被更改,包括 5 次插入 和 1 次删除
  1. 5 1
      .github/workflows/action-issue-triage-automation.yml

+ 5 - 1
.github/workflows/action-issue-triage-automation.yml

@@ -1188,7 +1188,11 @@ jobs:
               if (likelySupportedByCheckbox) reasons.push('requester confirmed Linux support via the form checkbox; no contradicting evidence found');
 
               let verdictLine = 'Linux support could not be confirmed automatically from the submitted details.';
-              if (confirmedNoLinux) {
+              if (linuxLabelOverrideBy && shouldApplyNoLinuxLabel) {
+                verdictLine = 'A maintainer has confirmed this server has no native Linux support.';
+              } else if (linuxLabelOverrideBy && shouldApplyConfirmedLinuxLabel) {
+                verdictLine = 'A maintainer has confirmed native Linux support.';
+              } else if (confirmedNoLinux) {
                 verdictLine = 'This server request does **not** appear to have native Linux support, which is required for LinuxGSM.';
               } else if (suggestsNoLinux) {
                 verdictLine = 'This server request **may not** have native Linux support based on submitted evidence.';