Recovery: Re-land (Close source-imported GitHub issues on ta
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -342,6 +342,7 @@ export const DEFAULT_PROJECT_SETTINGS = {
|
||||
autoUpdatePrStatus: false,
|
||||
githubCommentOnDone: false,
|
||||
githubCommentTemplate: undefined,
|
||||
githubCloseSourceIssueOnDone: false,
|
||||
githubTrackingEnabledByDefault: false,
|
||||
githubTrackingDefaultRepo: undefined,
|
||||
githubTrackingDedupEnabled: true,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user