mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
Reset sessions for comment-triggered wakeups
This commit is contained in:
parent
a1944fceab
commit
944263f44b
2 changed files with 24 additions and 2 deletions
|
|
@ -199,7 +199,11 @@ export function shouldResetTaskSessionForWake(
|
|||
contextSnapshot: Record<string, unknown> | null | undefined,
|
||||
) {
|
||||
const wakeReason = readNonEmptyString(contextSnapshot?.wakeReason);
|
||||
return wakeReason === "issue_assigned";
|
||||
if (wakeReason === "issue_assigned") return true;
|
||||
const wakeCommentId =
|
||||
readNonEmptyString(contextSnapshot?.wakeCommentId) ??
|
||||
readNonEmptyString(contextSnapshot?.commentId);
|
||||
return wakeCommentId != null;
|
||||
}
|
||||
|
||||
function deriveCommentId(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue