Keep your GitHub Actions, try Gitslice with zero risk
Draft changeset mirroring pushes every open patchset to a temporary branch on GitHub, runs your existing GitHub Actions workflows, and gates gs submit on the result — so teams can adopt Gitslice in minutes without rewriting CI or leaving GitHub behind.
- ci
- git
- feature
Moving source control usually feels like an all-or-nothing gamble: rewrite your CI pipelines, retrain your team on a new review flow, and hope you never need to move back. With draft changeset mirroring and the reusable github-actions-ci automation template, you can try Gitslice on a real repository in five minutes while keeping every existing GitHub Actions workflow — and every commit on GitHub — completely intact.
flowchart LR
A["gs create / gs modify"] --> B["Mirror draft to<br/>gitslice/cs-<id>"]
B --> C["GitHub Actions runs<br/>existing workflow"]
C --> D["github-actions-ci<br/>reads check runs"]
D --> E["Gitslice check<br/>passed / failed"]
E --> F["gs submit<br/>allowed or blocked"]
F --> G["Auto-delete draft<br/>branch on GitHub"]
#1. Why try Gitslice — what is actually different
Gitslice speaks Git at the edges, but underneath it is built around slices and changesets rather than local Git branches and pull requests. That unlocks four everyday wins without giving up Git compatibility:
- Stacked changesets without branch gymnastics. Break a large feature into small, reviewable layers simply by running
gs createwhile a draft is active. CI runs on every layer in parallel,gs reorderandgs moverestructure stacks in one pass,gs restack --continuewalks through conflicts bottom-up, and pure restacks reuse passing CI results automatically instead of burning runner minutes twice. See Stacked changesets without branches. - Focused slices and instant lazy workspaces. Check out one service or an entire monorepo. With
gs init --lazy, a workspace of thousands of files mounts in seconds and streams file contents on demand into a shared local cache, keeping your edits local until you rungs create. - First-class workflows for humans and coding agents. Agents onboard cleanly with scoped API keys and human co-ownership claims, run against sealed secrets that never expose raw tokens to scripts or logs, and hit mandatory human owner approval whenever a changeset edits
.gitslice/automation or policy files. - Continuous GitHub mirroring. Every landed changeset and tag mirrors back to GitHub within seconds, so anyone browsing code, opening issues, or running downstream integrations on GitHub sees an up-to-date repository at all times.
#2. Easy to try, zero risk, zero lock-in
Adopting Gitslice does not require cutting off GitHub or rewriting CI on day one:
- Your
mainbranch on GitHub is never force-pushed. Landings advance your GitHub branch strictly fast-forward, preserving commit authors, messages, timestamps, and tags. If someone commits directly to GitHub outside Gitslice, the mirror pauses and tells you instead of overwriting anything. - Draft branches stay isolated and clean themselves up. Open drafts push only to
refs/heads/gitslice/cs-<short-id>(with a customizable prefix), anchored on the exact mirrored base commit. The moment a changeset is submitted or abandoned, Gitslice deletes that temporary branch on GitHub automatically. - Keep your existing CI investment. Your
.github/workflows/*.ymlfiles, runners, caches, and secrets stay right where they are. You only add one branch pattern ("gitslice/cs-*") so GitHub Actions triggers on mirrored drafts. - Reversible in one command. If you decide Gitslice isn't right for a project, run
gs slice mirror rm <account>/<slice>. Your GitHub repository already holds 100% of your commits and history — nothing is locked in.
#3. Migrate from GitHub in five minutes
You can move a live repository over (or shadow-test it alongside GitHub) in five short steps. CLI commands require gs v0.4.35 or later (gs upgrade).
#Step 1: Import your repository into a slice
Import the repository with full history and create a slice over it:
gs import https://github.com/acme/app.git /acme/app --deep
gs slice create acme/app --path /acme/appBecause the slice covers a single top-level folder (/acme/app), Gitslice automatically maps that folder to the repository root when mirroring back to GitHub.
#Step 2: Enable Git mirroring with draft changesets
Create a fine-grained GitHub personal access token for acme/app with Contents (Read and write) (plus Checks (Read) if the repository is private), store it as a slice secret, and turn on mirroring with --mirror-changesets:
gs slice secret set acme/app GITHUB_MIRROR_TOKEN < token.txt
gs slice mirror set acme/app \
--url https://github.com/acme/app.git \
--token-secret GITHUB_MIRROR_TOKEN \
--mirror-changesetsYou can also toggle Mirror draft changesets (and customize the branch prefix) directly in the web UI under Slice Settings -> Mirror to Git. On the first sync, Gitslice recognizes the commits already on GitHub and resumes cleanly without re-pushing history.
#Step 3: Trigger your existing GitHub Actions workflow on mirrored drafts
Add "gitslice/cs-*" to on.push.branches in your existing workflow file so GitHub Actions runs automatically whenever Gitslice mirrors a draft patchset:
on:
pull_request:
push:
branches:
- main
- "gitslice/cs-*"Your build steps, matrices, caches, and runners stay untouched.
#Step 4: Wire the reusable github-actions-ci template
Add a short automation in .gitslice/automations.yaml that listens to changeset.mirrored and calls the official reusable template /gitslice/automations/github-actions-ci@v2.0.0:
version: 1
automations:
github-ci:
description: Mirror GitHub Actions CI results back onto draft changesets
on: [changeset.mirrored]
checks: [github-ci]
secrets:
GITHUB_TOKEN: GITHUB_MIRROR_TOKEN
network: [api.github.com]
action:
uses: /gitslice/automations/github-actions-ci@v2.0.0
with:
check_name: github-ci
# Optional: list specific GitHub job names (omit to require all jobs on the commit)
# checks: "test,lint,build"
# Optional: start in advisory mode before blocking submits
# severity: warnNotice you can reuse the exact same GITHUB_MIRROR_TOKEN secret via secret binding — no second credential to rotate. The token is sealed so the automation only authenticates to api.github.com and never prints raw secret values to logs.
#Step 5: Gate gs submit on the GitHub Actions check
Once you see green app/github-ci runs on a test draft, add it to the slice's required checks so failing GitHub Actions automatically block submission:
gs slice update acme/app --required-check app/github-ciWant to shadow-test first without blocking anyone? Leave --required-check off (or set severity: warn) while your team tries gs create, gs stack, and gs submit, then enable blocking whenever you are ready.
#4. What happens on every patchset
Once configured, the loop is completely automatic:
- Create or update a draft. Running
gs createorgs modifymirrors the patchset torefs/heads/gitslice/cs-<short-id>on GitHub, complete withGitslice-Changeset,Gitslice-Patchset, andGitslice-Base-Commitcommit trailers. - GitHub Actions runs. Pushing the branch triggers your workflow on the exact mirrored Git SHA.
- Gitslice tracks the result in real time. The
changeset.mirroredevent starts thegithub-actions-citemplate, which opens arunningcheck linked to GitHub's commit checks page and polls GitHub's Check Runs API until every required job completes. - Reruns and failures behave predictably. If you rerun a flaky job on GitHub, the template evaluates the latest run for each check name. When every job succeeds (or is skipped/neutral), the Gitslice check turns
passedand unblocksgs submit. If any job fails, times out, or is cancelled, the check turnsfailedwith a direct link to the failing GitHub Actions job. - Tamper-proof check ownership. Because
github-ciis declared inchecks:on the automation, contributors and coding agents cannot spoof or manually mark it green. - Automatic branch cleanup. When the changeset lands via
gs submit— or is discarded withgs cs abandon— Gitslice deletesrefs/heads/gitslice/cs-<short-id>on GitHub so stale branches never pile up.
#5. Migrate CI at your own pace
Keeping GitHub Actions doesn't lock you out of native Gitslice features. You can keep macOS/Windows matrices, deployment pipelines, or third-party Actions running on GitHub while gradually adding fast native checks in .gitslice/checks.yaml or reusable folder automations. Both report into the same gs stack view and the same gs submit gate.
#6. Try it now
Upgrade to gs v0.4.35 or newer and point a slice at a GitHub repo today:
gs upgrade
gs slice mirror set acme/app \
--url https://github.com/acme/app.git \
--token-secret GITHUB_MIRROR_TOKEN \
--mirror-changesets
gs auto inspect /gitslice/automations/github-actions-ci@v2.0.0Read the Git Mirrors docs and Automations docs for full configuration details, including custom branch prefixes (--changeset-ref-prefix), if_no_checks policies for path-filtered workflows, and severity: warn rollouts.
