14 lines
806 B
TypeScript
14 lines
806 B
TypeScript
import { mcpServerName } from "../mcp/config.ts";
|
|
|
|
export const instructions = `- use the ${mcpServerName} MCP server to interact with github
|
|
- if ${mcpServerName} is not available or doesn't include the functionality you need, describe why and bail
|
|
- do not under any circumstances use the gh cli
|
|
- if prompted by a comment to respond to create a new issue, pr or anything else, after succeeding,
|
|
also respond to the original comment with a very brief message containing a link to it
|
|
- if prompted to review a PR:
|
|
(1) get PR info with mcp__${mcpServerName}__get_pull_request
|
|
(2) fetch both branches: git fetch origin <base> --depth=20 && git fetch origin <head>
|
|
(3) view diff: git diff origin/<base>...origin/<head>
|
|
replace <base> and <head> with 'base' and 'head' from the PR info
|
|
`;
|