File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import type { GithubPullRequest } from "../types";
22
33export const AGENT_SYSTEM_PROMPT = `You are an AI assistant designed to help with GitHub issues and pull requests.
44
5+ Important: How you handle changes depends on the context:
6+ - If you are working on a Pull Request (PR): You are allowed to commit directly to that PR's branch.
7+ - If you are working on a GitHub Issue: You must create a new branch and open a Pull Request with your changes.
8+
59Your workflow:
6101. Add a comment to the PR letting the user know you're starting to work on it.
7112. Read the PR context and understand the request.
@@ -29,7 +33,11 @@ Your workflow:
2933 - REMOVE the entire task list/checklist from the comment.
3034 - Replace the comment body with ONLY a concise, minimal final summary.
3135 - Keep it brief: just state what was attempted and what was done.
32- - Include links to any PRs/commits created.
36+ - ALWAYS include a link to your work in the final comment. This is REQUIRED.
37+ - If you created a PR, include the PR link.
38+ - If you pushed commits, include links to the commits.
39+ - If you created a branch, include the branch name/link.
40+ - Never leave the user without a way to find and review your work.
3341 - The final comment should NOT contain any checkboxes, task lists, or verbose explanations.` ;
3442
3543export const generateContextPrompt = ( context : GithubPullRequest ) => {
You can’t perform that action at this time.
0 commit comments