@loopstack/git-examples
v0.1.1
Published
Git and GitHub workflow examples — scripted multi-tool git operations, and end-to-end GitHub repo sync via the ConnectGitHubWorkflow sub-workflow.
Maintainers
Readme
title: Git Examples description: Git and GitHub workflow examples — scripted multi-tool git operations and end-to-end repo sync via ConnectGitHubWorkflow
@loopstack/git-examples
Git and GitHub workflow examples for the Loopstack automation framework.
Two workflow examples that show how to compose git tools and integrate with GitHub.
Install as Source (Recommended)
npx giget@latest gh:loopstack-ai/loopstack/registry/examples/git-examples src/git-examplesRegister the module:
import { Module } from '@nestjs/common';
import { LoopstackModule } from '@loopstack/loopstack-module';
import { GitExamplesModule } from './git-examples/git-examples.module';
@Module({
imports: [LoopstackModule.forRoot(), GitExamplesModule],
})
export class AppModule {}Install as a Dependency
npm install @loopstack/git-examplesimport { GitExamplesModule } from '@loopstack/git-examples';Environment
The repo-sync example requires GitHub OAuth credentials:
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...Examples
| Example | Studio title | Description |
| ------------------------------------- | -------------------------------- | ---------------------------------------------------------------------- |
| Git Commit Flow | Git - Commit Flow Example | Scripted multi-tool git workflow — status → add → commit → log, no LLM |
| GitHub Repo Sync | Git - GitHub Repo Sync Example | Launches ConnectGitHubWorkflow for the full repo sync flow |
Git Commit Flow
A scripted workflow that orchestrates four git tools in sequence: gitStatus, gitAdd, gitCommit, gitLog. No LLM involved — demonstrates composing tools deterministically.
Files
git-commit-flow-example.workflow.ts— workflow class
GitHub Repo Sync
Thin wrapper that launches ConnectGitHubWorkflow from @loopstack/github-integration as a sub-workflow. The integration handles the full sync flow: OAuth → create or pick repo → check uncommitted changes → resolve divergence → push.
Files
github-repo-sync-example.workflow.ts— workflow class
About
Author: Jakob Klippel
License: MIT
