Recovery: Re-land (Close source-imported GitHub issues on ta

This commit is contained in:
gsxdsm
2026-05-28 19:49:31 -07:00
parent c722451a1c
commit b2dce7d852
14 changed files with 515 additions and 3 deletions

View File

@@ -69,6 +69,11 @@ describe("settings defaults invariants", () => {
});
});
it("keeps github source issue auto-close disabled by default", () => {
expect(DEFAULT_PROJECT_SETTINGS.githubCloseSourceIssueOnDone).toBe(false);
expect("githubCloseSourceIssueOnDone" in DEFAULT_GLOBAL_SETTINGS).toBe(false);
});
describe("recycleWorktrees default", () => {
it("keeps recycleWorktrees explicitly false in project defaults", () => {
expect(DEFAULT_PROJECT_SETTINGS.recycleWorktrees).toBe(false);

View File

@@ -342,6 +342,7 @@ export const DEFAULT_PROJECT_SETTINGS = {
autoUpdatePrStatus: false,
githubCommentOnDone: false,
githubCommentTemplate: undefined,
githubCloseSourceIssueOnDone: false,
githubTrackingEnabledByDefault: false,
githubTrackingDefaultRepo: undefined,
githubTrackingDedupEnabled: true,

View File

@@ -3333,6 +3333,9 @@ export interface ProjectSettings {
/** Optional template used for GitHub issue comments posted on task completion.
* Supports `{taskId}` and `{taskTitle}` placeholders. */
githubCommentTemplate?: string;
/** When true, automatically close linked source-imported GitHub issues
* when a task moves to done. Default: false. */
githubCloseSourceIssueOnDone?: boolean;
/** When true, new tasks default GitHub tracking to enabled for this project (FN-3868).
* Default: false. */
githubTrackingEnabledByDefault?: boolean;