mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-09 03:17:58 +00:00
Change roomote username (#224)
This commit is contained in:
parent
bf391cda66
commit
891f4a58fa
6 changed files with 21 additions and 18 deletions
|
|
@ -342,7 +342,7 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should return true for valid roomote mention from regular user', () => {
|
||||
const comment = createMockComment(
|
||||
'Hey @roomote, can you help with this?',
|
||||
'Hey @roomote-bot, can you help with this?',
|
||||
'testuser',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
|
|
@ -358,15 +358,15 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should return false when comment is from roomote user', () => {
|
||||
const comment = createMockComment(
|
||||
'Thanks for mentioning @roomote!',
|
||||
'roomote',
|
||||
'Thanks for mentioning @roomote-bot!',
|
||||
'roomote-bot',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(false);
|
||||
});
|
||||
|
||||
it('should return false when comment is from vercel[bot]', () => {
|
||||
const comment = createMockComment(
|
||||
'Deployment successful! @roomote',
|
||||
'Deployment successful! @roomote-bot',
|
||||
'vercel[bot]',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(false);
|
||||
|
|
@ -374,7 +374,7 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should return true when comment is from vercel (not vercel[bot])', () => {
|
||||
const comment = createMockComment(
|
||||
'Hey @roomote, check this out',
|
||||
'Hey @roomote-bot, check this out',
|
||||
'vercel',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
|
|
@ -382,7 +382,7 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should handle roomote mention in middle of text', () => {
|
||||
const comment = createMockComment(
|
||||
'I think @roomote should look at this issue',
|
||||
'I think @roomote-bot should look at this issue',
|
||||
'developer',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
|
|
@ -390,7 +390,7 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should handle multiple mentions including roomote', () => {
|
||||
const comment = createMockComment(
|
||||
'@user1 @roomote @user2 please review',
|
||||
'@user1 @roomote-bot @user2 please review',
|
||||
'reviewer',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
|
|
@ -414,7 +414,7 @@ describe('GitHub Webhook Utils', () => {
|
|||
|
||||
it('should return true for other bot users (only roomote and vercel[bot] are ignored)', () => {
|
||||
const comment = createMockComment(
|
||||
'Hey @roomote, check this',
|
||||
'Hey @roomote-bot, check this',
|
||||
'github-actions[bot]',
|
||||
);
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
|
|
@ -425,8 +425,8 @@ describe('GitHub Webhook Utils', () => {
|
|||
expect(isRoomoteMention(comment)).toBe(false);
|
||||
});
|
||||
|
||||
it('should handle comment with only @roomote', () => {
|
||||
const comment = createMockComment('@roomote', 'testuser');
|
||||
it('should handle comment with only @roomote-bot', () => {
|
||||
const comment = createMockComment('@roomote-bot', 'testuser');
|
||||
expect(isRoomoteMention(comment)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -100,5 +100,5 @@ export async function fetchGitHubAPI(url: string, options: RequestInit = {}) {
|
|||
}
|
||||
|
||||
export const isRoomoteMention = (comment: GithubComment) =>
|
||||
comment.body.includes('@roomote') &&
|
||||
!['roomote', 'vercel[bot]'].includes(comment.user.login);
|
||||
comment.body.includes('@roomote-bot') &&
|
||||
!['roomote-bot', 'vercel[bot]'].includes(comment.user.login);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ ${jobPayload.commentBody}
|
|||
|
||||
Comment URL: ${jobPayload.commentUrl}
|
||||
|
||||
Please analyze the comment and provide a helpful response. The comment mentions @roomote, which means the user wants you to engage with their question or request.
|
||||
Please analyze the comment and provide a helpful response. The comment mentions @roomote-bot, which means the user wants you to engage with their question or request.
|
||||
|
||||
${CRITICAL_COMMAND_RESTRICTIONS}
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ Instructions:
|
|||
5. If the comment is unclear, ask for clarification
|
||||
6. Use the GitHub CLI or API to respond to the comment with your message
|
||||
|
||||
Your goal is to be helpful and engage meaningfully with the community member who mentioned @roomote.
|
||||
Your goal is to be helpful and engage meaningfully with the community member who mentioned @roomote-bot.
|
||||
|
||||
Use the "gh" command line tool to respond to the comment:
|
||||
gh api repos/${jobPayload.repo}/issues/comments/${jobPayload.commentId} --method PATCH --field body="Your response here"
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ Instructions:
|
|||
6. Push the changes to the same PR branch: git push origin ${jobPayload.prBranch}
|
||||
7. After completing the changes, update your response or add a follow-up comment with the results
|
||||
|
||||
The comment mentions @roomote, which means the user wants you to process this request. Make sure to:
|
||||
The comment mentions @roomote-bot, which means the user wants you to process this request. Make sure to:
|
||||
- Respond to the comment first to acknowledge the request
|
||||
- Understand the context of the PR and the specific request in the comment
|
||||
- Implement the requested changes thoughtfully
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ User: @${user}
|
|||
Original Request:
|
||||
${originalPrompt}
|
||||
|
||||
Please analyze the request and implement the necessary changes. The user mentioned @roomote, which means they want you to engage with their request.
|
||||
Please analyze the request and implement the necessary changes. The user mentioned @roomote-bot, which means they want you to engage with their request.
|
||||
|
||||
${CRITICAL_COMMAND_RESTRICTIONS}
|
||||
|
||||
|
|
|
|||
|
|
@ -115,8 +115,11 @@ export function Jobs({ userId }: JobsProps) {
|
|||
</div>
|
||||
|
||||
{jobs.length === 0 ? (
|
||||
<div className="text-center py-8 text-muted-foreground">
|
||||
No jobs found. Create your first job using the form above.
|
||||
<div className="text-sm text-muted-foreground text-center py-8">
|
||||
No tasks found.
|
||||
<Button variant="link" size="sm" onClick={() => setModal('create')}>
|
||||
Create your first task.
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<div className="border rounded-lg overflow-hidden">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue