From eeb0621c60b8971f87e6f5f7a5cafc854ce0203e Mon Sep 17 00:00:00 2001 From: Gunju Kim Date: Mon, 16 Mar 2026 18:08:17 +0000 Subject: [PATCH] Remove redundant git checkout from pr-responder setup Kelos automatically checks out the branch specified in branch: "{{.Branch}}" before the agent starts, making the explicit git checkout commands redundant. This also eliminates the shell injection risk from unquoted template variables. The /kind label change in kelos-workers.yaml is reverted as including /kind in the PR body already handles adding the kind label automatically. Co-Authored-By: Claude Opus 4.6 --- self-development/kelos-pr-responder.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/self-development/kelos-pr-responder.yaml b/self-development/kelos-pr-responder.yaml index 9287f2b9..cec3179b 100644 --- a/self-development/kelos-pr-responder.yaml +++ b/self-development/kelos-pr-responder.yaml @@ -70,16 +70,14 @@ spec: {{end}} Task: - - 0. Set up your working branch. Run this exactly: + - 0. Set up your working branch. Kelos has already checked out {{.Branch}} for you. Run this exactly: ``` git fetch --unshallow || true if git remote get-url upstream >/dev/null 2>&1; then git fetch upstream main - git checkout {{.Branch}} git rebase upstream/main else git fetch origin main - git checkout {{.Branch}} git rebase origin/main fi ```