Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 43 additions & 1 deletion src/api/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1958,14 +1958,56 @@ const APP_COMMANDS = [
description: "Preview the public-safe summary that may be posted to a PR thread.",
endpoint: "/v1/app/commands/preview",
},
...GITTENSORY_MENTION_COMMAND_CATALOG.filter((command) => !["help", "preflight", "blockers", "packet"].includes(command.id)).map((command) => ({
...GITTENSORY_MENTION_COMMAND_CATALOG.filter(
(command) => !["help", "preflight", "blockers", "packet", "queue-summary", "review-now", "needs-author", "confirmed-miners", "duplicate-clusters"].includes(command.id),
).map((command) => ({
id: command.id,
command: `@gittensory ${command.id}`,
audience: "public-safe",
boundary: "public",
description: command.description,
endpoint: "GitHub issue comment",
})),
{
id: "queue-summary",
command: "@gittensory queue-summary",
audience: "maintainer",
boundary: "public-safe",
description: "Post a maintainer-only queue digest from cached GitHub metadata.",
endpoint: "/v1/app/maintainer-dashboard",
},
{
id: "review-now",
command: "@gittensory review-now",
audience: "maintainer",
boundary: "public-safe",
description: "List cached PRs that look ready for maintainer review.",
endpoint: "/v1/app/maintainer-dashboard",
},
{
id: "needs-author",
command: "@gittensory needs-author",
audience: "maintainer",
boundary: "public-safe",
description: "List cached PRs that need author cleanup before detailed review.",
endpoint: "/v1/app/maintainer-dashboard",
},
{
id: "confirmed-miners",
command: "@gittensory confirmed-miners",
audience: "maintainer",
boundary: "public-safe",
description: "List open PRs whose authors are confirmed in the official-miner cache.",
endpoint: "/v1/app/maintainer-dashboard",
},
{
id: "duplicate-clusters",
command: "@gittensory duplicate-clusters",
audience: "maintainer",
boundary: "public-safe",
description: "List duplicate or WIP clusters visible from cached GitHub metadata.",
endpoint: "/v1/app/maintainer-dashboard",
},
] as const;

function authRedirectWithError(env: Env, reason: string): string {
Expand Down
Loading