@aviaratech/ai-delivery 0.3.37 → 0.3.38
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/README.md +1 -1
- package/dist/contributorChecks.test.js +5 -2
- package/dist/contributorChecks.test.js.map +2 -2
- package/dist/issue.js +7 -2
- package/dist/issue.js.map +2 -2
- package/dist/issueInfoReadback.test.js +59 -1
- package/dist/issueInfoReadback.test.js.map +2 -2
- package/package.json +1 -1
- package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
- package/plugins/ai-delivery/plugin.json +1 -1
- package/plugins/ai-delivery/runtime/dist/cli.js +54 -54
- package/plugins/ai-delivery/runtime/package.json +1 -1
package/dist/issue.js
CHANGED
|
@@ -923,6 +923,11 @@ async function prepareIssueUpdate(context, input) {
|
|
|
923
923
|
const projectOnly = input.projectStatus !== void 0 && Object.entries(input).every(
|
|
924
924
|
([key, value]) => value === void 0 || ["repo", "issueNumber", "projectStatus", "overrideReason"].includes(key)
|
|
925
925
|
);
|
|
926
|
+
const closeOnly = input.state === "closed" && input.closeReason !== void 0 && Object.entries(input).every(
|
|
927
|
+
([key, value]) => value === void 0 || ["repo", "issueNumber", "state", "closeReason", "supersededBy", "preserveHistory", "overrideReason"].includes(
|
|
928
|
+
key
|
|
929
|
+
)
|
|
930
|
+
);
|
|
926
931
|
requireDeferralPatch({
|
|
927
932
|
...input.defer === void 0 ? {} : { defer: input.defer },
|
|
928
933
|
...input.undefer === void 0 ? {} : { undefer: input.undefer }
|
|
@@ -948,7 +953,7 @@ async function prepareIssueUpdate(context, input) {
|
|
|
948
953
|
settings: projectSettingsFromDeliveryConfig(config)
|
|
949
954
|
}) : null;
|
|
950
955
|
const legacyNativeEdit = archivedItemId !== null && !currentContent.body.trimStart().startsWith("<!-- ai-delivery:issue@1 -->");
|
|
951
|
-
const prepared = legacyNativeEdit || projectOnly ? {
|
|
956
|
+
const prepared = legacyNativeEdit || projectOnly || closeOnly ? {
|
|
952
957
|
issue: IssueFields.parse({ title: input.title ?? currentContent.title, draft: true }),
|
|
953
958
|
body: currentContent.body,
|
|
954
959
|
statusOnly: true,
|
|
@@ -957,7 +962,7 @@ async function prepareIssueUpdate(context, input) {
|
|
|
957
962
|
} : prepareIssueWrite(input, currentContent);
|
|
958
963
|
input = {
|
|
959
964
|
...input,
|
|
960
|
-
...projectOnly ? {} : { body: prepared.body },
|
|
965
|
+
...projectOnly || closeOnly ? {} : { body: prepared.body },
|
|
961
966
|
...prepared.statusOnly ? {} : {
|
|
962
967
|
title: prepared.issue.title,
|
|
963
968
|
...prepared.issue.draft ? { park: true } : {}
|