Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions test/unit/queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22797,13 +22797,15 @@ describe("queue processors", () => {
installation: { id: 123, account: { login: "JSONbored", id: 1, type: "User" } },
repository: { name: "gittensory", full_name: "JSONbored/gittensory", private: false, owner: { login: "JSONbored" } },
issue: { number: 93, title: "Not yet wired", state: "open", user: { login: "contributor" }, pull_request: {} },
comment: { id: 900, body: "@gittensory configuration", author_association: "OWNER", user: { login: "maintainer", type: "User" } },
comment: { id: 900, body: "@gittensory pause", author_association: "OWNER", user: { login: "maintainer", type: "User" } },
sender: { login: "maintainer", type: "User" },
},
});

// No handler claims a bare "configuration" comment yet (its dispatch lands in a follow-up bounty), so the Q&A
// answer-card path must bail rather than post a stray "help" card or any other Q&A comment.
// "pause" is a recognized action-command (GITTENSORY_ACTION_COMMAND_CATALOG) but has no maybeProcess*Command
// dispatch handler wired yet, unlike gate-override/resolve/configuration/plan -- its dispatch lands in a
// follow-up bounty, so the Q&A answer-card path must bail rather than post a stray "help" card or any other
// Q&A comment.
expect(calls.comments).toBe(0);
const feedback = await env.DB.prepare("select id from audit_events where event_type = ?").bind("github_app.agent_command_feedback_prompted").first<{ id: string }>();
expect(feedback ?? null).toBeNull();
Expand Down