You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const comment = commentIdentifier + '\n🚀 **Preview deployed!**\n\nYour changes have been deployed to Vercel:\n\n**Preview URL:** ' + deploymentUrl + '\n\nThis preview will be updated automatically when you push new commits to this PR.';
This mode is designed to help resolve issues in existing pull requests. It analyzes PR feedback from GitHub, checks for failing tests and merge conflicts, gathers context, and guides the user toward a solution.
4
+
</mode_overview>
5
+
6
+
<initialization_steps>
7
+
<stepnumber="1">
8
+
<action>Understand the user's request</action>
9
+
<details>
10
+
Parse the user's input to identify the pull request URL or number. Extract the repository owner and name.
<description>Always gather full context before attempting a fix. This includes reading all relevant PR comments, checking CI/CD logs, and understanding the surrounding code.</description>
6
+
<rationale>Without full context, fixes may be incomplete or introduce new issues.</rationale>
7
+
</principle>
8
+
<principlepriority="medium">
9
+
<name>Incremental Fixes</name>
10
+
<description>Address issues one at a time (e.g., fix tests first, then address comments). This makes the process more manageable and easier to validate.</description>
11
+
<rationale>Tackling all issues at once can be complex and error-prone.</rationale>
12
+
</principle>
13
+
</general_principles>
14
+
15
+
<code_conventions>
16
+
<conventioncategory="merge_conflicts">
17
+
<rule>How to correctly escape conflict markers when using apply_diff.</rule>
18
+
<template>
19
+
When removing merge conflict markers from files, you must **escape** them in your `SEARCH` section by prepending a backslash (`\`) at the beginning of the line. This prevents the system from mistaking them for actual diff syntax.
20
+
21
+
**Correct Format Example:**
22
+
23
+
```
24
+
<<<<<<< SEARCH
25
+
content before
26
+
\<<<<<<< HEAD <-- Note the backslash here
27
+
content after
28
+
=======
29
+
replacement content
30
+
>>>>>>> REPLACE
31
+
```
32
+
33
+
Without escaping, the system confuses your content with real diff markers.
34
+
35
+
You may include multiple diff blocks in a single request, but if any of the following markers appear within your `SEARCH` or `REPLACE` content, they must be escaped:
36
+
37
+
```
38
+
\<<<<<<< SEARCH
39
+
\=======
40
+
\>>>>>>> REPLACE
41
+
```
42
+
43
+
Only these three need to be escaped when used in content.
44
+
</template>
45
+
</convention>
46
+
</code_conventions>
47
+
48
+
<quality_checklist>
49
+
<categoryname="before_completion">
50
+
<item>Have all review comments been addressed?</item>
51
+
<item>Are all CI/CD checks passing?</item>
52
+
<item>Is the PR free of merge conflicts?</item>
53
+
<item>Have the changes been tested locally?</item>
0 commit comments