feat(git-hangman-lab): rename create-pr to pr with subcommands

- Replace single create-pr script with unified pr script
- Add subcommands: create, list, commits, merge
- Update git-ctrl and SKILL.md documentation
This commit is contained in:
lyn
2026-04-01 15:40:08 +00:00
parent 22b1154429
commit 1a2f8abd8b
4 changed files with 274 additions and 101 deletions

View File

@@ -43,16 +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`)
### Create Pull Request
### Pull Request Operations
Create a pull request on git.hangman-lab.top.
Manage pull requests on git.hangman-lab.top.
```bash
{baseDir}/scripts/git-ctrl create-pr <repo-local-path> <head-branch> <base-branch> [pr-title] [pr-body]
{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).