(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func createCommitMsgTestFiles(t *testing.T) string { |
| 14 | t.Helper() |
| 15 | tmpDir := t.TempDir() |
| 16 | |
| 17 | tasksDir := filepath.Join(tmpDir, "cli") |
| 18 | if err := os.MkdirAll(tasksDir, 0755); err != nil { |
| 19 | t.Fatalf("failed to create tasks dir: %v", err) |
| 20 | } |
| 21 | |
| 22 | files := map[string]string{ |
| 23 | "cli/042-feature.md": `--- |
| 24 | id: "042" |
| 25 | title: "Add commit-msg command" |
| 26 | status: completed |
| 27 | priority: medium |
| 28 | effort: medium |
| 29 | tags: [cli, git] |
| 30 | group: cli |
| 31 | created: 2026-02-16 |
| 32 | --- |
| 33 | |
| 34 | # Add commit-msg command |
| 35 | |
| 36 | - [x] Create command scaffolding |
| 37 | - [x] Implement message generation |
| 38 | - [ ] Add documentation |
| 39 | `, |
| 40 | "cli/043-bugfix.md": `--- |
| 41 | id: "043" |
| 42 | title: "Fix output formatting" |
| 43 | status: completed |
| 44 | priority: high |
| 45 | effort: small |
| 46 | tags: [cli, bug] |
| 47 | group: cli |
| 48 | created: 2026-02-16 |
| 49 | --- |
| 50 | |
| 51 | # Fix output formatting |
| 52 | |
| 53 | - [x] Fix newline handling |
| 54 | - [ ] Update tests |
| 55 | `, |
| 56 | "044-no-group.md": `--- |
| 57 | id: "044" |
| 58 | title: "Update README" |
| 59 | status: pending |
| 60 | priority: low |
| 61 | effort: small |
| 62 | tags: [docs] |
| 63 | created: 2026-02-16 |
| 64 | --- |
| 65 | |
| 66 | # Update README |
| 67 | |
| 68 | - [x] Add installation instructions |
| 69 | - [x] Add usage examples |
| 70 | `, |
no outgoing calls
no test coverage detected