Skip to content

Commit f8039fc

Browse files
authored
Merge pull request #68 from cahaseler/66-markdown
fix: only stage task file instead of all files when creating task from issue
2 parents 2766936 + 3d3e39d commit f8039fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/commands/create-task-from-issue.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,12 @@ _To be populated during implementation_
134134
// Commit task file to main branch
135135
console.log('💾 Committing task file...');
136136
const safeIssueNumber = String(issue.number).replace(/[^0-9]/g, '');
137-
execSync(`git add . && git commit -m "feat: create TASK_${taskId} from GitHub issue #${safeIssueNumber}"`, {
138-
cwd: projectRoot,
139-
});
137+
execSync(
138+
`git add "${taskPath}" && git commit -m "feat: create TASK_${taskId} from GitHub issue #${safeIssueNumber}"`,
139+
{
140+
cwd: projectRoot,
141+
},
142+
);
140143

141144
// Create issue branch if not disabled
142145
let branchName: string | null = null;

0 commit comments

Comments
 (0)