@staff0rd/assist 0.831.1 → 0.833.0

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
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.831.1",
9
+ version: "0.833.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -3318,7 +3318,8 @@ function toPreviewDecision(msg) {
3318
3318
  autoMerge: msg.autoMerge === true,
3319
3319
  autostart: msg.autostart === true,
3320
3320
  selection: toSelection(msg.selection),
3321
- checklist: toChecklist(msg.checklist)
3321
+ checklist: toChecklist(msg.checklist),
3322
+ dismissed: msg.dismissed === true
3322
3323
  };
3323
3324
  }
3324
3325
 
@@ -25876,7 +25877,8 @@ function issuePreviewMetadata(resolved) {
25876
25877
  if (parent)
25877
25878
  items2.push({
25878
25879
  label: "Parent",
25879
- value: `${parent.owner}/${parent.repo}#${parent.number}`
25880
+ value: `${parent.owner}/${parent.repo}#${parent.number}`,
25881
+ url: `https://github.com/${parent.owner}/${parent.repo}/issues/${parent.number}`
25880
25882
  });
25881
25883
  if (project)
25882
25884
  items2.push({
@@ -36099,6 +36101,10 @@ async function openHighLevelOverlay(sessionId, subject) {
36099
36101
  },
36100
36102
  { rejectIsOutcome: true }
36101
36103
  );
36104
+ if (decision.dismissed) {
36105
+ console.log("Review closed without a verdict. Nothing was saved.");
36106
+ return void 0;
36107
+ }
36102
36108
  const record = buildHighLevelRecord(subject, decision);
36103
36109
  const path109 = saveHighLevelReview(record);
36104
36110
  console.log(`Verdict: ${record.verdict}`);
@@ -44944,7 +44950,8 @@ function decidePrPreview(sessions, waiters, notify2, d) {
44944
44950
  draft: d.draft,
44945
44951
  autoMerge: d.autoMerge,
44946
44952
  autostart: d.autostart,
44947
- checklist: d.checklist
44953
+ checklist: d.checklist,
44954
+ dismissed: d.dismissed
44948
44955
  });
44949
44956
  waiters.delete(id);
44950
44957
  session.pendingPrPreview = void 0;
@@ -44955,8 +44962,15 @@ function decidePrPreview(sessions, waiters, notify2, d) {
44955
44962
  function parsePreviewMetadata(value) {
44956
44963
  if (!Array.isArray(value)) return void 0;
44957
44964
  const items2 = value.flatMap((entry) => {
44958
- const { label: label2, value: text18 } = entry ?? {};
44959
- return typeof label2 === "string" && typeof text18 === "string" ? [{ label: label2, value: text18 }] : [];
44965
+ const {
44966
+ label: label2,
44967
+ value: text18,
44968
+ url
44969
+ } = entry ?? {};
44970
+ if (typeof label2 !== "string" || typeof text18 !== "string") return [];
44971
+ return [
44972
+ typeof url === "string" ? { label: label2, value: text18, url } : { label: label2, value: text18 }
44973
+ ];
44960
44974
  });
44961
44975
  return items2.length > 0 ? items2 : void 0;
44962
44976
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.831.1",
3
+ "version": "0.833.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {