feat(HAI-094): add includeTaskIdInCommit setting to control commit scope
- Add includeTaskIdInCommit boolean to Settings type with default true - Refactor merger to dynamically build system prompt based on setting - Update fallback commit message to respect the toggle - Add checkbox to Settings UI under Merge section - Add unit tests for merger and SettingsModal behavior
This commit is contained in:
@@ -93,6 +93,10 @@ export interface Settings {
|
||||
* Defaults to `"HAI"`. Only affects new tasks — existing tasks retain
|
||||
* their original IDs. */
|
||||
taskPrefix?: string;
|
||||
/** When true, merge commit messages include the task ID as the conventional
|
||||
* commit scope (e.g. `feat(HAI-001): ...`). When false, the scope is
|
||||
* omitted (e.g. `feat: ...`). Default: true. */
|
||||
includeTaskIdInCommit?: boolean;
|
||||
}
|
||||
|
||||
export const DEFAULT_SETTINGS: Settings = {
|
||||
@@ -104,6 +108,7 @@ export const DEFAULT_SETTINGS: Settings = {
|
||||
worktreeInitCommand: undefined,
|
||||
recycleWorktrees: false,
|
||||
taskPrefix: undefined,
|
||||
includeTaskIdInCommit: true,
|
||||
};
|
||||
|
||||
export interface BoardConfig {
|
||||
|
||||
Reference in New Issue
Block a user