fix: add explicit PR creation instructions to dev agent message #224

Closed
shoko wants to merge 1 commits from fix/issue-223-pr-creation-instructions into main

View File

@@ -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