feat: add create-pr command (#3)

This commit was merged in pull request #3.
This commit is contained in:
lyn
2026-04-01 15:52:42 +00:00
parent d8dee3b062
commit dc5ce61bf7
4 changed files with 286 additions and 1 deletions

View File

@@ -43,6 +43,21 @@ Create a new git repository on git.hangman-lab.top.
> **Note**: The repository will be created at `${AGENT_WORKSPACE}/${repo-name}` (default: `/root/.openclaw/workspace/workspace-mentor`)
### Pull Request Operations
Manage pull requests on git.hangman-lab.top.
```bash
{baseDir}/scripts/git-ctrl pr create <repo-local-path> <head-branch> <base-branch> [pr-title] [pr-body]
{baseDir}/scripts/git-ctrl pr list <repo-local-path>
{baseDir}/scripts/git-ctrl pr commits <repo-local-path> <pr-index>
{baseDir}/scripts/git-ctrl pr merge <repo-local-path> <pr-index> <do> [commit-id] [title] [message]
```
> **Note**: The access token will be automatically generated if not found.
> **`<do>`** can be: `merge`, `squash`, `rebase`, `manually-merged`
### Link Keycloak Account
Link Keycloak account with Gitea (for OAuth binding).