mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Run the fixGithubIssue job as issue-fixer (#162)
This commit is contained in:
parent
314a64b3ce
commit
a8d3cd421d
1 changed files with 4 additions and 16 deletions
|
|
@ -22,22 +22,7 @@ export async function fixGitHubIssue(
|
|||
Fix the following GitHub issue:
|
||||
|
||||
Repository: ${jobPayload.repo}
|
||||
Issue #${jobPayload.issue}: ${jobPayload.title}
|
||||
|
||||
Description:
|
||||
${jobPayload.body}
|
||||
|
||||
${jobPayload.labels && jobPayload.labels.length > 0 ? `Labels: ${jobPayload.labels.join(', ')}` : ''}
|
||||
|
||||
Please analyze the issue, understand what needs to be fixed, and implement a solution.
|
||||
|
||||
When you're finished:
|
||||
- Create a git branch to store your work (git checkout -b fix-${jobPayload.issue})
|
||||
- Commit your changes to this branch (git commit -m "Fixes #${jobPayload.issue}")
|
||||
- Push your branch to the remote repository (git push --set-upstream origin fix-${jobPayload.issue})
|
||||
- Submit a pull request using the "gh" command line tool (gh pr create --title "Fixes #${jobPayload.issue}\n\n[Your PR description here.]" --fill)
|
||||
|
||||
Your job isn't done until you've created a pull request. Try to solve any git issues that arise while creating your branch and submitting your pull request.
|
||||
Issue #${jobPayload.issue}
|
||||
`.trim();
|
||||
|
||||
const { repo, issue } = jobPayload;
|
||||
|
|
@ -52,6 +37,9 @@ Your job isn't done until you've created a pull request. Try to solve any git is
|
|||
tag: 'worker',
|
||||
}),
|
||||
callbacks,
|
||||
settings: {
|
||||
mode: 'issue-fixer',
|
||||
},
|
||||
});
|
||||
|
||||
return { repo, issue, result };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue