--- name: git-hangman-lab description: Git operations for hangman-lab.top - manage accounts, tokens, repositories, and Gitea settings. --- > All scripts must be executed via the `pcexec` tool. ## Scripts ### Account & Credentials | Command | Description | |---------|-------------| | `{baseDir}/scripts/git-ctrl check-git-cred` | Verify git credentials are configured correctly | | `{baseDir}/scripts/git-ctrl create-git-account` | Create a new git account and configure access | | `{baseDir}/scripts/git-ctrl generate-access-token` | Generate an access token for the current user | | `{baseDir}/scripts/git-ctrl reset-password` | Reset password (reads username from secret-mgr) | > **create-git-account**: Do not execute unless explicitly requested. Contact **agent-resource-director** or **hangman** first. ### Repository Operations | Command | Description | |---------|-------------| | `{baseDir}/scripts/git-ctrl repo create ` | Create repo at `${AGENT_WORKSPACE}/` | | `{baseDir}/scripts/git-ctrl repo get-latest [branch] [--recursive] [--force]` | Pull latest or clone if missing | | `{baseDir}/scripts/git-ctrl repo add-collaborators --user --repo ` | Add a collaborator | | `{baseDir}/scripts/git-ctrl repo list-all` | List all visible repositories | | `{baseDir}/scripts/git-ctrl repo config --repo-path [--recursive]` | Configure repo credentials | ### Pull Request Operations | Command | Description | |---------|-------------| | `{baseDir}/scripts/git-ctrl pr create [title] [body]` | Create a PR | | `{baseDir}/scripts/git-ctrl pr list ` | List PRs | | `{baseDir}/scripts/git-ctrl pr show ` | Show PR details | | `{baseDir}/scripts/git-ctrl pr commits ` | List PR commits | | `{baseDir}/scripts/git-ctrl pr merge [commit-id] [title] [message]` | Merge a PR | > **pr merge ``**: `merge`, `squash`, `rebase`, or `manually-merged` > Access token is auto-generated if not found. ### Gitea Settings | Command | Description | |---------|-------------| | `{baseDir}/scripts/git-ctrl link-keycloak` | Link Keycloak account with Gitea (OAuth binding) | | `{baseDir}/scripts/git-ctrl external-login-ctrl --enable/--disable` | Enable or disable local login on Gitea | ### Package Publishing | Command | Description | |---------|-------------| | `{baseDir}/scripts/git-ctrl publish-package ` | Publish a package to the Gitea registry |