Compare commits
1 Commits
3014fc303e
...
fix/issue-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
505d68642c |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user