Skip to content

Commit 70a5b32

Browse files
authored
Enhance Slack roomote command prompt with git workflow instructions (#209)
* Enhance Slack roomote command prompt with git workflow instructions - Add instructions to create and push to remote branch - Include guidance for opening PR using gh CLI - Ensure all changes are tracked and reviewable before merging * Align Slack roomote trigger with other trigger patterns - Restructured processSlackMention to follow the same pattern as processIssueComment and processPullRequestComment - Created structured prompt with clear context and instructions instead of just appending to original prompt - Maintains git workflow instructions while improving consistency across roomote triggers - Addresses feedback from @mrubens in PR comment #3041965262
1 parent 799cca9 commit 70a5b32

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

apps/roomote/src/lib/jobs/processSlackMention.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,32 @@ export async function processSlackMention(
1414
user: string;
1515
result: unknown;
1616
}> {
17-
const { text: prompt, channel, user } = jobPayload;
17+
const { text: originalPrompt, channel, user } = jobPayload;
18+
19+
// Create a structured prompt following the same pattern as other roomote triggers
20+
const prompt = `
21+
Process the following Slack mention request:
22+
23+
Channel: ${channel}
24+
User: @${user}
25+
Original Request:
26+
${originalPrompt}
27+
28+
Please analyze the request and implement the necessary changes. The user mentioned @roomote, which means they want you to engage with their request.
29+
30+
Instructions:
31+
1. Read and understand the context of the request
32+
2. Implement the requested changes or provide the requested assistance
33+
3. Follow proper git workflow practices for any code changes
34+
4. Provide clear feedback on what was accomplished
35+
36+
IMPORTANT: After completing your changes, please follow this git workflow:
37+
1. Create and push your changes to a new remote branch using: git push origin HEAD:feature/your-branch-name
38+
2. Open a pull request using the GitHub CLI: gh pr create --title "Your PR Title" --body "Description of changes"
39+
3. Include the PR link in your completion message
40+
41+
This ensures all changes are properly tracked and can be reviewed before merging.
42+
`.trim();
1843

1944
// Add your workspace root to .env.local to override the default
2045
// workspace root that our containers use.

0 commit comments

Comments
 (0)