@hcmai/cli 0.31.1 → 0.31.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5545,7 +5545,8 @@ import {
5545
5545
  runImport,
5546
5546
  importExitCode,
5547
5547
  formatObject as formatObject9,
5548
- fromAxiosError as fromAxiosError12
5548
+ fromAxiosError as fromAxiosError12,
5549
+ describeExcludedReason
5549
5550
  } from "@hcmai/sdk";
5550
5551
  function collectYmlFiles(path26) {
5551
5552
  if (statSync(path26).isFile()) return [path26];
@@ -5633,11 +5634,24 @@ var IMPORT_NEXT_STEP = {
5633
5634
  };
5634
5635
  var importNextStep = (reason) => (reason && IMPORT_NEXT_STEP[reason]) ?? `${reason ?? "\u670D\u52A1\u7AEF\u6CA1\u7ED9\u539F\u56E0\u7801"}\uFF1A\u6309 id \u624B\u5DE5\u6838\u5BF9\uFF0C\u4E0D\u8981\u91CD\u5BFC`;
5635
5636
  var MAX_NAMED_ROWS = 20;
5637
+ function printExcluded(excluded) {
5638
+ if (!excluded.length) return;
5639
+ const byReason = /* @__PURE__ */ new Map();
5640
+ for (const e of excluded) byReason.set(e.reason, [...byReason.get(e.reason) ?? [], e]);
5641
+ process.stderr.write(" \u6CA1\u6BD4\u5BF9\u7684\u5B57\u6BB5\uFF08\u670D\u52A1\u7AEF\u6392\u9664\u6E05\u5355\uFF0C\u8FD9\u4E9B\u5217\u5199\u9519\u4E86\u4E5F\u7167\u6837\u6838\u9A8C\u901A\u8FC7\uFF09\uFF1A\n");
5642
+ for (const [reason, list] of byReason) {
5643
+ const why = reason === "UNSPECIFIED" ? "\u670D\u52A1\u7AEF\u6CA1\u7ED9\u539F\u56E0" : describeExcludedReason(reason) ?? "\u8FD9\u7248 CLI \u4E0D\u8BA4\u8BC6\u8FD9\u4E2A\u539F\u56E0\u7801\uFF0C\u539F\u6837\u7167\u767B";
5644
+ process.stderr.write(` \u2298 ${reason}\uFF08${why}\uFF09\uFF1A${list.map((e) => `${e.field}\xD7${e.rows}\u884C`).join("\u3001")}
5645
+ `);
5646
+ }
5647
+ process.stderr.write(" \u8981\u786E\u8BA4\u8FD9\u4E9B\u5217\uFF0C\u6309 id \u8BFB\u56DE\u90A3\u51E0\u884C\u6838\u5BF9\uFF1B\u9010\u884C\u89C1 --report \u6216 stdout \u7684 rows[].verification.excluded\n");
5648
+ }
5636
5649
  function printVerification(result) {
5637
5650
  const v = result.verification;
5638
5651
  process.stderr.write(
5639
5652
  `\u{1F50E} verify: \u6838\u9A8C\u901A\u8FC7=${v.verified} \u6838\u9A8C\u5931\u8D25=${v.mismatched} \u672A\u6838\u9A8C=${v.unverified}` + (v.skippedNotVerified ? `\uFF08\u53E6\u6709 ${v.skippedNotVerified} \u884C\u5DF2\u5B58\u5728\u3001\u88AB\u8DF3\u8FC7\uFF0C\u6CA1\u5199\u5165\u3001\u4E0D\u6838\u9A8C\uFF09` : "") + (result.failed ? `\uFF08\u53E6\u6709 ${result.failed} \u884C\u5199\u5165\u5931\u8D25\uFF0C\u6CA1\u6838\uFF09` : "") + "\n"
5640
5653
  );
5654
+ printExcluded(v.excluded);
5641
5655
  const label = (r) => `${r.model}:${r.key}`;
5642
5656
  const one = (f) => {
5643
5657
  const extra = [
@@ -17623,7 +17637,7 @@ async function gapPendingVerify({ client: client4 }, { now = Date.now(), signal
17623
17637
  const nextStep = items.length ? `\u8FD9 ${items.length} \u5F20\u5355\u4FEE\u590D\u5DF2\u8D85\u8FC7 ${VERIFY_OVERDUE_DAYS} \u5929\u3001\u4ECD\u5F85\u590D\u9A8C\uFF1A\u4FEE\u590D\u53D1\u5230\u4F60\u7684\u73AF\u5883\u540E\u6309\u6280\u80FD\u590D\u9A8C\uFF0C\u518D\u8DD1\u6BCF\u884C\u7ED9\u7684 gap verify \u547D\u4EE4\u56DE\u5199\u7ED3\u8BBA\u3002${unsure ? `\u53E6\u6709${unsure}\u3002` : ""}` : complete ? "\u6CA1\u6709\u5F85\u590D\u9A8C\u7684\u5355\u3002" : `\u6CA1\u627E\u5230\u8D85\u671F\u7684\u5355\uFF0C\u4F46${unsure}\uFF0C\u4E0D\u80FD\u636E\u6B64\u8BF4\u300C\u6CA1\u6709\u300D\u3002`;
17624
17638
  return { complete, items, undetermined, recentlyRefixed, prefilter: { jql, count: pre.issues.length, total: pre.total, truncated: pre.truncated }, nextStep };
17625
17639
  }
17626
- var PRODUCT_HANDLING_KEYWORDS = /分诊|已转|已修|合入|不做|重复|改技能|产品侧|代码库已关闭/;
17640
+ var COMMENT_PROGRESS_KEYWORDS = /分诊|已转|已修|合入|不做|重复|改技能|产品侧|代码库已关闭/;
17627
17641
  var HEADLINE_MAX = 300;
17628
17642
  function commentWhen(created) {
17629
17643
  const m = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/.exec(created ?? "");
@@ -17679,7 +17693,7 @@ async function gapStatus({ client: client4 }, ref, casesSlug = CASES_REPO_SLUG3)
17679
17693
  const resolution = issue.fields.resolution?.name;
17680
17694
  const lines = [`Jira ${issue.key} [${status}${resolution ? "\xB7" + resolution : ""}${issue.fields.priority ? " " + issue.fields.priority.name : ""}] ${issue.fields.summary ?? ""}`, ` ${client4.browseUrl(issue.key)}`];
17681
17695
  const progress = cs.filter((c2) => !isStatsRegistration(c2.body));
17682
- const productRaw = [...progress].reverse().find((c2) => PRODUCT_HANDLING_KEYWORDS.test(c2.body ?? ""));
17696
+ const keywordRaw = [...progress].reverse().find((c2) => COMMENT_PROGRESS_KEYWORDS.test(c2.body ?? ""));
17683
17697
  const latestRaw = progress.at(-1);
17684
17698
  const skipped = cs.length - progress.length;
17685
17699
  const newerSkipped = latestRaw ? cs.slice(cs.indexOf(latestRaw) + 1).length : 0;
@@ -17690,26 +17704,28 @@ async function gapStatus({ client: client4 }, ref, casesSlug = CASES_REPO_SLUG3)
17690
17704
  ...v.url ? [` ${v.url}`] : []
17691
17705
  ];
17692
17706
  const stamp = (v) => `${v.when} ${v.author}`;
17693
- let latestProductComment;
17707
+ let latestKeywordComment;
17694
17708
  let latestComment;
17695
- let sameAsProduct;
17696
- if (productRaw) {
17697
- latestProductComment = toView(client4, issue.key, productRaw);
17698
- latestProductComment.matchedKeyword = PRODUCT_HANDLING_KEYWORDS.exec(productRaw.body ?? "")?.[0];
17709
+ let sameAsKeyword;
17710
+ if (keywordRaw) {
17711
+ latestKeywordComment = toView(client4, issue.key, keywordRaw);
17712
+ latestKeywordComment.matchedKeyword = COMMENT_PROGRESS_KEYWORDS.exec(keywordRaw.body ?? "")?.[0];
17713
+ latestKeywordComment.matchBasis = "body-keyword-only";
17699
17714
  }
17700
17715
  if (latestRaw) {
17701
17716
  latestComment = toView(client4, issue.key, latestRaw);
17702
- sameAsProduct = !!productRaw && productRaw === latestRaw;
17717
+ sameAsKeyword = !!keywordRaw && keywordRaw === latestRaw;
17703
17718
  if (!isAutoNotice(latestRaw.body)) latestComment.signal = classifyFollowUp(latestComment.headline);
17704
17719
  }
17705
- const hit = `\u547D\u4E2D\u300C${latestProductComment?.matchedKeyword ?? "?"}\u300D`;
17706
- if (latestProductComment && latestComment && sameAsProduct) {
17707
- lines.push(...render2(`\u6700\u65B0\u5904\u7406\uFF08\u65E2\u662F\u4EA7\u54C1\u4FA7\u5904\u7406\u3014${hit}\u3015\u4E5F\u662F\u6700\u65B0\u8BC4\u8BBA\uFF1B${skipNote}${stamp(latestComment)}\uFF09`, latestComment));
17720
+ const hit = `\u547D\u4E2D\u300C${latestKeywordComment?.matchedKeyword ?? "?"}\u300D`;
17721
+ if (latestKeywordComment && latestComment && sameAsKeyword) {
17722
+ lines.push(...render2(`\u5173\u952E\u8BCD\u547D\u4E2D\u8BC4\u8BBA\uFF08\u540C\u65F6\u4E3A\u6700\u65B0\u8BC4\u8BBA\uFF1B${hit}\uFF1B${skipNote}${stamp(latestComment)}\uFF09`, latestComment));
17708
17723
  } else {
17709
- if (latestProductComment) lines.push(...render2(`\u4EA7\u54C1\u4FA7\u5904\u7406\uFF08${hit}\uFF1B${stamp(latestProductComment)}\uFF09`, latestProductComment));
17710
- else if (latestComment) lines.push(` \u8FD8\u6CA1\u6709\u4EA7\u54C1\u4FA7\u5904\u7406\u8BC4\u8BBA\uFF08${skipped ? "\u4E0D\u7B97\u777F\u620E\u7EDF\u8BA1\u767B\u8BB0\uFF0C" : ""}\u5206\u8BCA / \u5DF2\u8F6C / \u5408\u5165 / \u4EE3\u7801\u5E93\u5DF2\u5173\u95ED \u8FD9\u7C7B\u5173\u952E\u8BCD\u4E00\u6761\u90FD\u6CA1\u547D\u4E2D\uFF09`);
17724
+ if (latestKeywordComment) lines.push(...render2(`\u5173\u952E\u8BCD\u547D\u4E2D\u8BC4\u8BBA\uFF08${hit}\uFF1B${stamp(latestKeywordComment)}\uFF09`, latestKeywordComment));
17725
+ else if (latestComment) lines.push(` \u8FD8\u6CA1\u6709\u5173\u952E\u8BCD\u547D\u4E2D\u8BC4\u8BBA\uFF08${skipped ? "\u4E0D\u7B97\u777F\u620E\u7EDF\u8BA1\u767B\u8BB0\uFF0C" : ""}\u5206\u8BCA / \u5DF2\u8F6C / \u5408\u5165 / \u4EE3\u7801\u5E93\u5DF2\u5173\u95ED \u8FD9\u7C7B\u5173\u952E\u8BCD\u4E00\u6761\u90FD\u6CA1\u547D\u4E2D\uFF09`);
17711
17726
  if (latestComment) lines.push(...render2(`\u6700\u65B0\u8BC4\u8BBA\uFF08${skipNote}${stamp(latestComment)}\uFF09`, latestComment));
17712
17727
  }
17728
+ if (latestKeywordComment) lines.push(" \u5173\u952E\u8BCD\u4EC5\u7528\u4E8E\u68C0\u7D22\uFF0C\u4E0D\u8BC1\u660E\u8BC4\u8BBA\u6765\u81EA\u4EA7\u54C1\u4FA7\u6216\u95EE\u9898\u5DF2\u7ECF\u4FEE\u590D\u3002");
17713
17729
  if (!latestComment) {
17714
17730
  lines.push(
17715
17731
  skipped ? ` \u8FD8\u6CA1\u6709\u8FDB\u5C55\u8BC4\u8BBA\uFF08\u5355\u4E0B\u53EA\u6709 ${skipped} \u6761\u777F\u620E\u7EDF\u8BA1\u767B\u8BB0\uFF0C\u4E0E\u8FDB\u5C55\u65E0\u5173\uFF1B\u4EA7\u54C1\u4FA7\u6BCF\u5468\u6E05\u4E00\u6B21\uFF1B\u963B\u65AD\u7EA7\u8BF7\u5728\u9879\u76EE\u7FA4\u91CC\u70B9\u540D\u8D1F\u8D23\u4EBA\uFF09` : " \u8FD8\u6CA1\u6709\u4EBA\u5904\u7406\uFF08\u4EA7\u54C1\u4FA7\u6BCF\u5468\u6E05\u4E00\u6B21\uFF1B\u963B\u65AD\u7EA7\u8BF7\u5728\u9879\u76EE\u7FA4\u91CC\u70B9\u540D\u8D1F\u8D23\u4EBA\uFF09"
@@ -17763,10 +17779,10 @@ ${cs.map((c2) => c2.body ?? "").join("\n")}`).map((l) => ({
17763
17779
  nextStep = `\u590D\u9A8C\u6CA1\u8FC7 / \u88AB\u963B\u585E\u2014\u2014${cite}${tail}\u3002\u7403\u56DE\u5230\u4EA7\u54C1\u4FA7\uFF1A\u7EE7\u7EED\u7528\u66FF\u4EE3\u6CD5\u4EA4\u4ED8\uFF0C\u8FDB\u5C55\u770B\u8FD9\u5355\u540E\u7EED\u8BC4\u8BBA\u3002`;
17764
17780
  break;
17765
17781
  default:
17766
- if (!sameAsProduct) nextStep += ` \u53E6\uFF1A\u6709\u4E00\u6761\u6BD4\u4EA7\u54C1\u4FA7\u5904\u7406\u66F4\u65B0\u7684\u8BC4\u8BBA\u2014\u2014${cite}${tail}\uFF0C\u5148\u770B\u5B83\u3002`;
17782
+ if (!sameAsKeyword) nextStep += ` \u53E6\uFF1A\u6709\u4E00\u6761\u6BD4\u5173\u952E\u8BCD\u547D\u4E2D\u8BC4\u8BBA\u66F4\u65B0\u7684\u8BC4\u8BBA\u2014\u2014${cite}${tail}\uFF0C\u5148\u770B\u5B83\u3002`;
17767
17783
  }
17768
17784
  }
17769
- return { ref, lines, nextStep, jira: { key: issue.key, status, resolution, url: client4.browseUrl(issue.key) }, links, latestProductComment, latestComment, sameAsProduct, skippedStatsRegistrations: skipped };
17785
+ return { ref, lines, nextStep, jira: { key: issue.key, status, resolution, url: client4.browseUrl(issue.key) }, links, latestKeywordComment, latestComment, sameAsKeyword, skippedStatsRegistrations: skipped };
17770
17786
  }
17771
17787
  async function gapComments({ client: client4 }, ref, { limit } = {}, casesSlug = CASES_REPO_SLUG3) {
17772
17788
  const parsed = parseRef2(ref, client4.project, casesSlug);
@@ -24673,7 +24689,7 @@ projectEnv.command("edit <name> <field> <value>").description("\u7F16\u8F91 endp
24673
24689
  projectEnv.command("remove <name>").description("\u5220\u9664\u9879\u76EE\u73AF\u5883\uFF1B\u9ED8\u8BA4\u9879\u987B\u5148\u6539\u5230\u5176\u4ED6\u73AF\u5883").option("--project <dir>", "\u9879\u76EE\u76EE\u5F55\uFF08\u5411\u4E0A\u5BFB\u627E env.yaml\uFF09", ".").option(...OUTPUT_OPT).action((name, opts) => chironEnvCommand("remove", { ...opts, name }));
24674
24690
  var gap = chiron.command("gap").description("\u7F3A\u53E3\uFF1A\u649E\u5230\u300C\u4EA7\u54C1\u505A\u4E0D\u5230\u300D\u65F6\u7684\u7EDF\u4E00\u51FA\u53E3\uFF0C\u8FDB Jira\uFF08HCMNX\uFF09\u2014\u2014\u67E5\u91CD search / \u67E5\u8FDB\u5EA6 status / \u8BFB\u8BC4\u8BBA comments / \u63D0\u7F3A\u53E3 submit / \u9A8C\u6536 verify");
24675
24691
  gap.command("search").description("\u67E5\u91CD\uFF1A\u6309\u9519\u8BEF\u7801 / Model / Action / \u4E00\u53E5\u73B0\u8C61\u67E5 Jira\uFF0C\u5E26\u56DE\u7F16\u53F7\u4E0E\u72B6\u6001").argument("<keywords...>", "\u5173\u952E\u8BCD\uFF0C\u6BCF\u4E2A\u5355\u72EC\u67E5\u4E00\u6B21").option("--no-include-closed", "\u53EA\u67E5\u672A\u89E3\u51B3\u7684").option(...OUTPUT_OPT).action((keywords, opts) => gapSearchCommand(keywords, opts));
24676
- gap.command("status").description("\u67E5\u8FDB\u5EA6\uFF1A\u7ED9 Jira \u5355\u53F7\uFF08HCMNX-12 \u6216\u88F8\u6570\u5B57 12\uFF09\u65F6\uFF0C\u4EA7\u54C1\u4FA7\u6700\u65B0\u5904\u7406\u4E0E\u6700\u65B0\u8BC4\u8BBA\u5404\u7ED9\u9996\u884C\uFF0C\u5168\u6587\u770B comments\uFF1B\u4E0D\u7ED9\u5355\u53F7\u65F6\uFF0C\u5217\u51FA\u6211\u63D0\u7684\u3001\u5DF2\u4FEE\u590D\u8D85\u8FC7 14 \u5929\u5F85\u590D\u9A8C\u7684\u5355\u548C\u6BCF\u5F20\u7684 verify \u547D\u4EE4").argument("[ref]", "Jira \u5355\u53F7\uFF1B\u4E0D\u7ED9\u5C31\u5217\u5F85\u590D\u9A8C\u6E05\u5355").option(...OUTPUT_OPT).action((ref, opts) => gapStatusCommand(ref, opts));
24692
+ gap.command("status").description("\u67E5\u8FDB\u5EA6\uFF1A\u7ED9 Jira \u5355\u53F7\uFF08HCMNX-12 \u6216\u88F8\u6570\u5B57 12\uFF09\u65F6\uFF0C\u6700\u65B0\u5173\u952E\u8BCD\u547D\u4E2D\u8BC4\u8BBA\u4E0E\u6700\u65B0\u8BC4\u8BBA\u5404\u7ED9\u9996\u884C\uFF08\u5173\u952E\u8BCD\u4E0D\u8BC1\u660E\u4EA7\u54C1\u8EAB\u4EFD\u6216\u4FEE\u590D\u7ED3\u8BBA\uFF09\uFF0C\u5168\u6587\u770B comments\uFF1B\u4E0D\u7ED9\u5355\u53F7\u65F6\uFF0C\u5217\u51FA\u6211\u63D0\u7684\u3001\u5DF2\u4FEE\u590D\u8D85\u8FC7 14 \u5929\u5F85\u590D\u9A8C\u7684\u5355\u548C\u6BCF\u5F20\u7684 verify \u547D\u4EE4").argument("[ref]", "Jira \u5355\u53F7\uFF1B\u4E0D\u7ED9\u5C31\u5217\u5F85\u590D\u9A8C\u6E05\u5355").option(...OUTPUT_OPT).action((ref, opts) => gapStatusCommand(ref, opts));
24677
24693
  gap.command("comments").description("\u8BFB\u8BC4\u8BBA\uFF1A\u6309\u65F6\u95F4\u6B63\u5E8F\u5217\u51FA\u8FD9\u5355\u4E0B\u7684\u8BC4\u8BBA\u2014\u2014\u65F6\u95F4\uFF08\u5230\u5206\u949F\uFF09/ \u4F5C\u8005 / \u5168\u6587 / \u8BC4\u8BBA\u6C38\u4E45\u94FE\u63A5").argument("<ref>", "Jira \u5355\u53F7").option("--limit <n>", "\u53EA\u770B\u6700\u8FD1 N \u6761\uFF08\u4ECD\u6309\u65F6\u95F4\u6B63\u5E8F\uFF09").option(...OUTPUT_OPT).action((ref, opts) => gapCommentsCommand(ref, opts));
24678
24694
  gap.command("submit").description("\u63D0\u7F3A\u53E3\uFF1A\u5148\u67E5\u91CD\uFF08\u672A\u89E3\u51B3 + \u5DF2\u4FEE\u590D + \u8FD1 90 \u5929 CLOSE\uFF09\u3002\u6709\u76F8\u4F3C\u5355\u5C31\u53EA\u5217\u51FA\u6765\u3001\u4E0D\u5199\uFF0C\u7531\u4F60\u70B9\u540D --append-to \u8FFD\u52A0\u6216 --new \u65B0\u5F00\uFF1B\u6CA1\u6709\u5C31\u6309 HCMNX \u5FC5\u586B\u683C\u65B0\u5F00\u3002\u8F7D\u8377 JSON \u8D70 --file \u6216\u6807\u51C6\u8F93\u5165").option("--file <path>", "\u7F3A\u53E3\u8F7D\u8377 JSON\uFF08title/phenomenon/repro/expected/alternative/q_*/severity/kind/module/local_workaround\u2026\uFF09").option("--env <name>", "\u53D6\u73AF\u5883\u6307\u7EB9\u7528\u7684\u73AF\u5883\u522B\u540D\uFF08\u7F3A\u7701 activeEnv\uFF09").option("--fingerprint <text>", "\u76F4\u63A5\u7ED9\u6307\u7EB9\u6587\u672C\uFF08\u8BAD\u7EC3\u573A\u4ECE \u573A.yml \u53D6\u65F6\u7528\uFF09\uFF0C\u4E0D\u518D\u73B0\u67E5").option("--issuetype <name>", "\u8986\u76D6 issuetype\uFF08\u7F3A\u7701\u6309 kind \u9009 \u6545\u969C / \u9700\u6C42\uFF09").option("--assignee <user>", "\u8986\u76D6\u7ECF\u529E\u4EBA\uFF08\u7F3A\u7701\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF09").option("--append-to <ref>", "\u786E\u8BA4\u662F\u540C\u4E00\u7F3A\u53E3\uFF1A\u53EA\u5F80\u8FD9\u5F20\u5355\u8FFD\u52A0\u300C\u53C8\u4E00\u4E2A\u73B0\u573A\u300D\uFF08\u5DF2\u5173\u95ED\u7684\u5355\u3001\u91CD\u590D\u5355\u3001\u7591\u4F3C\u56DE\u5F52\u4F1A\u62D2\u7EDD\uFF0C\u7167\u6BCF\u5F20\u7684\u63D0\u793A\u8D70\uFF1A\u53BB\u539F\u5355\u3001\u5148\u5347\u7EA7\u3001\u539F\u5355\u63D0\u5355\u4EBA\u7528 gap verify --result fail \u9000\u56DE\uFF0C\u6216 --new\uFF09").option("--new", "\u65B0\u5F00\u4E00\u5F20\uFF0C\u770B\u8FC7\u7684\u76F8\u4F3C\u5355\u5199\u8FDB\u65B0\u5355\u7684\u300C\u67E5\u91CD\u300D\u4E00\u8282\u3002\u76F8\u4F3C\u5355\u90FD\u4E0D\u662F\u540C\u4E00\u7F3A\u53E3\u3001\u6216\u540C\u4E00\u7F3A\u53E3\u4F46\u539F\u5355\u6CA1\u4FEE\u5C31\u5173\u4E86 / \u5DF2\u542B\u4FEE\u590D\u4ECD\u590D\u73B0\uFF08\u7591\u4F3C\u56DE\u5F52\uFF09\u65F6\u8D70\u8FD9\u91CC\uFF0C\u73B0\u8C61\u91CC\u5199\u4E0A\u539F\u5355\u53F7\uFF1B\u91CD\u590D\u5355\u53BB\u5B83\u6307\u5411\u7684\u539F\u5355\u3001\u73AF\u5883\u65E9\u4E8E\u4FEE\u590D\u5148\u5347\u7EA7\u3001\u539F\u5355\u8FD8\u505C\u5728\u5DF2\u4FEE\u590D\u800C\u4F60\u662F\u63D0\u5355\u4EBA\uFF08\u7528 gap verify --result fail \u9000\u56DE\u539F\u5355\uFF09\uFF0C\u90FD\u4E0D\u8D70\u8FD9\u91CC").option("--dry-run", "\u53EA\u67E5\u91CD\u5E76\u6253\u5370\u4F1A\u505A\u4EC0\u4E48\uFF0C\u4E0D\u5199 Jira").option(...OUTPUT_OPT).action((opts) => gapSubmitCommand(opts));
24679
24695
  gap.command("verify").description("\u9A8C\u6536\uFF1A\u4FEE\u590D\u53D1\u5230\u4F60\u7684\u73AF\u5883\u5E76\u6309\u6280\u80FD\u590D\u9A8C\u540E\uFF0C\u7531\u63D0\u5355\u4EBA\u56DE\u5199\u7ED3\u8BBA\u2014\u2014pass \u5173\u5355\u3001fail \u9000\u56DE\u3001partial \u53EA\u8BB0\u5F55\u4E0D\u5173\u5355\uFF1Bfail/partial \u5199\u5165\u524D\u4F1A\u6838\u5BF9\u73AF\u5883 revision \u5DF2\u5305\u542B\u4FEE\u590D").argument("<ref>", "Jira \u5355\u53F7\uFF08HCMNX-12 \u6216\u88F8\u6570\u5B57 12\uFF09\uFF0C\u53EA\u80FD\u662F\u4F60\u81EA\u5DF1\u63D0\u7684\u5355").requiredOption("--result <result>", "\u590D\u9A8C\u7ED3\u8BBA\uFF1Apass\uFF08\u539F\u6545\u969C\u4E0D\u518D\u51FA\u73B0\uFF09/ fail\uFF08\u4ECD\u590D\u73B0\uFF0C\u6216\u9A8C\u51FA\u6CA1\u901A\u8FC7\u7684\uFF09/ partial\uFF08\u53EA\u9A8C\u4E86\u4E00\u90E8\u5206\u3001\u9A8C\u8FC7\u7684\u90FD\u901A\u8FC7\uFF1B\u4E0D\u5173\u5355\uFF09").option("--body <text>", "\u9A8C\u6536\u8BC1\u636E\uFF1A\u73AF\u5883\u3001\u7248\u672C\u3001\u6309\u6280\u80FD\u8DD1\u4E86\u4EC0\u4E48\u3001\u770B\u5230\u4E86\u4EC0\u4E48").option("--file <path>", "\u4ECE\u6587\u4EF6\u8BFB\u9A8C\u6536\u8BC1\u636E\uFF08\u4E0E --body \u4E8C\u9009\u4E00\uFF1B\u90FD\u4E0D\u7ED9\u5C31\u8BFB\u6807\u51C6\u8F93\u5165\uFF09").option("--env <name>", "\u53D6\u73AF\u5883\u6307\u7EB9\u7528\u7684\u73AF\u5883\u522B\u540D\uFF08\u7F3A\u7701 activeEnv\uFF09").option("--fingerprint <text>", "\u76F4\u63A5\u7ED9\u6307\u7EB9\u6587\u672C\uFF0C\u4E0D\u518D\u73B0\u67E5").option("--dry-run", "\u53EA\u6838\u5BF9\u5E76\u6253\u5370\u8BA1\u5212\uFF0C\u4E0D\u5199 Jira").option(...OUTPUT_OPT).action((ref, opts) => gapVerifyCommand(ref, opts));