Skip to content

Commit c0bb481

Browse files
more instructions for backporting agent for complex patches
Signed-off-by: Tomas Tomecek <[email protected]> Assisted-by: Cursor(Claude) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8a73ef4 commit c0bb481

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agents/backport_agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def get_instructions() -> str:
108108
- Preserve existing formatting and style conventions in spec files and patch headers.
109109
- Prefer native tools, if available, the `run_shell_command` tool should be the last resort.
110110
- Ignore all changes that cause conflicts in the following kinds of files: .github/ workflows, .gitignore, news, changes, and internal documentation.
111+
- Apply all changes that modify the core library of the package, and all binaries, manpages, and user-facing documentation.
112+
- For more information how the package is being built, inspect the RPM spec file and read sections `%prep` and `%build`.
113+
- If there is a complex conflict, you are required to properly resolve it by applying the core functionality of the proposed patch.
111114
- Never apply the patches yourself, always use the `git_patch_apply` tool.
112115
- Never run `git am --skip`, always use the `git_apply_finish` tool instead.
113116
- Never abort the existing git am session.

0 commit comments

Comments
 (0)