github-issue-tower-defence-management 2.161.5 → 2.161.6
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/bin/domain/usecases/OwnerRepliedIssueRevertUseCase.js +1 -2
- package/bin/domain/usecases/OwnerRepliedIssueRevertUseCase.js.map +1 -1
- package/bin/domain/usecases/findLastAgentReport.js +1 -1
- package/bin/domain/usecases/issueHasUnansweredOwnerConfirmationRequest.js +1 -1
- package/package.json +1 -1
- package/types/domain/usecases/OwnerRepliedIssueRevertUseCase.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -791,7 +791,7 @@ The `schedule` command runs two distinct processing loops within a single invoca
|
|
|
791
791
|
|
|
792
792
|
The following use cases execute on every `schedule` trigger (cadence is determined by the caller's cron/daemon, typically ~3 minutes):
|
|
793
793
|
|
|
794
|
-
- `OwnerRepliedIssueRevertUseCase` — on every cycle, returns each open `Awaiting Owner` issue (pull requests excluded) to `Awaiting Workspace` when the owner replied after the newest agent comment: a comment from an `allowedIssueAuthors` author that is neither an agent comment nor a comment this tool posts itself (such as `Auto Status Check:`) was created after
|
|
794
|
+
- `OwnerRepliedIssueRevertUseCase` — on every cycle, returns each open `Awaiting Owner` issue (pull requests excluded) to `Awaiting Workspace` when the owner replied after the newest agent comment: a comment from an `allowedIssueAuthors` author that is neither an agent comment nor a comment this tool posts itself (such as `Auto Status Check:`) was created after the creation of the newest agent comment, an edit to that agent comment never moving that point, an agent comment being an `allowedIssueAuthors` comment that starts with `From: :robot: ` or carries a fenced JSON object. The Status write is skipped when the item's live Status is no longer `Awaiting Owner`, and nothing is returned when `allowedIssueAuthors` is null, omitted or empty.
|
|
795
795
|
- `RevertNotReadyReviewQueueIssueUseCase` — handles two review-queue statuses in a single pass:
|
|
796
796
|
- Awaiting Owner items: reverts items whose linked PR is conflicting, draft, missing, multiplied, has failing or never-started CI checks, or has unresolved review comments back to awaiting-workspace. For items that have no rejections it also runs the `change-target:<path>` auto-approve check: when the item carries one or more `change-target:` labels and every changed file of the ready PR is confined to the labeled paths, the PR is auto-approved.
|
|
797
797
|
- Unread pull requests: evaluates each open Unread PR for review-readiness using the same criteria above; if the PR is not yet ready, the status is moved to awaiting-workspace and the item's Story is set to "workflow management".
|
|
@@ -23,9 +23,8 @@ const hasOwnerReplyAfterNewestAgentComment = (comments, isTrustedAuthor) => {
|
|
|
23
23
|
if (newestAgentComment === null) {
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
|
-
const newestAgentCommentLastWrittenAtMilliseconds = Math.max(newestAgentComment.createdAt.getTime(), newestAgentComment.updatedAt.getTime());
|
|
27
26
|
return comments.some((comment) => isOwnerReply(comment, isTrustedAuthor) &&
|
|
28
|
-
comment.createdAt.getTime() >
|
|
27
|
+
comment.createdAt.getTime() > newestAgentComment.createdAt.getTime());
|
|
29
28
|
};
|
|
30
29
|
class OwnerRepliedIssueRevertUseCase {
|
|
31
30
|
constructor(issueRepository, issueCommentRepository) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerRepliedIssueRevertUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/OwnerRepliedIssueRevertUseCase.ts"],"names":[],"mappings":";;;AAGA,+DAGoC;AAGpC,2DAAwD;AACxD,iGAA8F;AAC9F,qDAAkD;AAClD,+EAA4E;AAE5E,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAI9C,MAAM,cAAc,GAAG,CACrB,OAAgB,EAChB,eAAmC,EAC1B,EAAE,CACX,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAC3D,IAAA,qCAAiB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AAExC,MAAM,YAAY,GAAG,CACnB,OAAgB,EAChB,eAAmC,EAC1B,EAAE,CACX,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,CAAC;IACzC,IAAA,+BAAc,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAE3C,MAAM,oCAAoC,GAAG,CAC3C,QAAmB,EACnB,eAAmC,EAC1B,EAAE;IACX,MAAM,kBAAkB,GAAG,QAAQ;SAChC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;SAC7D,MAAM,CACL,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAClB,MAAM,KAAK,IAAI;QACf,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;QACtD,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,MAAM,EACZ,IAAI,CACL,CAAC;IACJ,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,
|
|
1
|
+
{"version":3,"file":"OwnerRepliedIssueRevertUseCase.js","sourceRoot":"","sources":["../../../src/domain/usecases/OwnerRepliedIssueRevertUseCase.ts"],"names":[],"mappings":";;;AAGA,+DAGoC;AAGpC,2DAAwD;AACxD,iGAA8F;AAC9F,qDAAkD;AAClD,+EAA4E;AAE5E,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAI9C,MAAM,cAAc,GAAG,CACrB,OAAgB,EAChB,eAAmC,EAC1B,EAAE,CACX,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAC3D,IAAA,qCAAiB,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AAExC,MAAM,YAAY,GAAG,CACnB,OAAgB,EAChB,eAAmC,EAC1B,EAAE,CACX,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;IAC/B,CAAC,cAAc,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E,CACjC,CAAC;gBACJ,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;YACD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACxB,MAAM,mBAAmB,GAAG,QAAQ,CAAC,GAAG,CACtC,CAAC,OAAO,EAAE,EAAE,CACV,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAC5G,CAAC;gBACF,MAAM,IAAI,cAAc,CACtB,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EACxC,6DAA6D,QAAQ,CAAC,MAAM,IAAI,2CAA0B,iCAAiC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5K,CAAC;YACJ,CAAC;QACH,CAAC,CAAC;IAnEC,CAAC;CAoEL;AA9ED,wEA8EC"}
|
|
@@ -11,7 +11,7 @@ const findLastAgentReportPostedSince = (comments, isTrustedAuthor, postedSince)
|
|
|
11
11
|
return (0, exports.findLastAgentReport)(comments, isTrustedAuthor);
|
|
12
12
|
}
|
|
13
13
|
return (comments
|
|
14
|
-
.filter((comment) => comment.
|
|
14
|
+
.filter((comment) => comment.createdAt >= postedSince)
|
|
15
15
|
.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime())
|
|
16
16
|
.find((comment) => isTrustedAuthor(comment.author) && (0, isAgentReportBody_1.isAgentReportBody)(comment.content)) ?? null);
|
|
17
17
|
};
|
|
@@ -12,7 +12,7 @@ const issueHasUnansweredOwnerConfirmationRequest = (comments, isTrustedAuthor) =
|
|
|
12
12
|
if (!(0, extractNeedOwnerConfirmationOrApproval_1.extractNeedOwnerConfirmationOrApproval)(lastAgentReport.content)) {
|
|
13
13
|
return false;
|
|
14
14
|
}
|
|
15
|
-
const hasReplyAfterReport = comments.some((comment) => comment.updatedAt.getTime() > lastAgentReport.
|
|
15
|
+
const hasReplyAfterReport = comments.some((comment) => comment.updatedAt.getTime() > lastAgentReport.createdAt.getTime() &&
|
|
16
16
|
(0, isHumanComment_1.isHumanComment)(comment, isTrustedAuthor));
|
|
17
17
|
return !hasReplyAfterReport;
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerRepliedIssueRevertUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/OwnerRepliedIssueRevertUseCase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"OwnerRepliedIssueRevertUseCase.d.ts","sourceRoot":"","sources":["../../../src/domain/usecases/OwnerRepliedIssueRevertUseCase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAkDvE,qBAAa,8BAA8B;IAEvC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAC5B,eAAe,EACf,cAAc,GAAG,KAAK,GAAG,6BAA6B,CACvD;IACD,QAAQ,CAAC,sBAAsB,EAAE,IAAI,CACnC,sBAAsB,EACtB,sBAAsB,CACvB;gBAPQ,eAAe,EAAE,IAAI,CAC5B,eAAe,EACf,cAAc,GAAG,KAAK,GAAG,6BAA6B,CACvD,EACQ,sBAAsB,EAAE,IAAI,CACnC,sBAAsB,EACtB,sBAAsB,CACvB;IAGH,GAAG,GAAU,QAAQ;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;KACvC,KAAG,OAAO,CAAC,IAAI,CAAC,CA6Df;CACH"}
|