feat(FN-4649): complete Step 3 — register hook from CLI and pi-extension entry points
Fusion-Task-Id: FN-4649 Fusion-Task-Lineage: 98ab6ec3-5253-4db6-93f0-de4ab7792002
This commit is contained in:
committed by
gsxdsm
parent
e1410dbba1
commit
1b2302e273
@@ -7,7 +7,7 @@ import type { PlanningQuestion, PlanningSummary } from "@fusion/core";
|
||||
import { createSession, submitResponse, RateLimitError, SessionNotFoundError, InvalidSessionStateError } from "@fusion/dashboard/planning";
|
||||
import { watchFile, unwatchFile, statSync, existsSync, readFileSync } from "node:fs";
|
||||
import { basename, join } from "node:path";
|
||||
import { GitHubClient } from "@fusion/dashboard";
|
||||
import { GitHubClient, registerGithubTrackingHook } from "@fusion/dashboard";
|
||||
import {
|
||||
getGhErrorMessage,
|
||||
getCurrentRepo,
|
||||
@@ -21,6 +21,10 @@ import { findNodeByNameOrId } from "./node.js";
|
||||
const execAsync = promisify(exec);
|
||||
const STEP_STATUSES: StepStatus[] = ["pending", "in-progress", "done", "skipped"];
|
||||
|
||||
// Register GitHub tracking hook so CLI task creation paths (add, duplicate,
|
||||
// refine, import, delegate) trigger tracking issue creation.
|
||||
registerGithubTrackingHook();
|
||||
|
||||
function getGitHubIssueUrl(sourceMetadata: unknown): string | undefined {
|
||||
if (!sourceMetadata || typeof sourceMetadata !== "object") return undefined;
|
||||
const issueUrl = (sourceMetadata as { issueUrl?: unknown }).issueUrl;
|
||||
|
||||
Reference in New Issue
Block a user