From 505d68642c03b0ad2e49edf3b63580b5769620e3 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Tue, 7 Apr 2026 13:08:11 +0000 Subject: [PATCH] fix: add explicit PR creation instructions to dev agent message Add explicit curl command for creating PRs using Gitea API. Previously the agent was guessing 'tea issue create' instead of using the correct API endpoint. Fixes #223 --- skills/kugetsu/scripts/kugetsu-session.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index 79d1ded..559d79f 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -287,6 +287,23 @@ Workflow: 8. Create a branch named fix/issue-$number and implement the fix 9. Create a PR when the implementation is complete +### Creating PRs +When creating a PR, use the Gitea API directly with curl: + +```bash +curl -X POST "https://$instance/api/v1/repos/$owner/$repo/pulls" \ + -H "Authorization: Bearer \$GITEA_TOKEN" \ + -H "Content-Type: application/json" \ + -d '{ + "title": "Fix issue #$number", + "head": "fix/issue-$number", + "base": "main", + "body": "Closes #$number" + }' +``` + +Environment variable \$GITEA_TOKEN is available in your environment. + Work directory: $worktree_path" if [ -n "$user_message" ]; then