Checkout
Creates a workspace for this slice. Sign in first with gs auth login. New to gs? See CLI docs.
Mounts it instead of downloading everything: files arrive as they are read, and your edits stay on your machine until you create a changeset. Linux and macOS, with FUSE.
Official first-party reusable Gitslice automations (Slack, GitHub Actions, Linear, Vercel, Cloudflare)
Slice root
gitslice/automations/README.md
Official First-Party Gitslice Automations (gitslice/automations)
Reusable on: [call] automation templates published by Gitslice so any folder
in any account can integrate with external platforms in a few lines of YAML—with
sealed secrets and caller-bounded network allowlists (zero reveal: or
egress: direct required).
Catalog (@v1.0.0)
| Template | Reference | Secret slot | Network hosts | Outputs |
|---|---|---|---|---|
| Slack Notify | /gitslice/automations/slack-notify@v1.0.0 |
SLACK_WEBHOOK_PATH |
hooks.slack.com |
delivered |
| GitHub Actions Dispatch | /gitslice/automations/github-dispatch@v1.0.0 |
GITHUB_TOKEN |
api.github.com |
dispatched_url, mode |
| Linear Issue Sync | /gitslice/automations/linear-sync@v1.0.0 |
LINEAR_API_KEY |
api.linear.app |
issue_keys, issue_urls, synced_count |
| Vercel Deploy | /gitslice/automations/vercel-deploy@v1.0.0 |
VERCEL_DEPLOY_HOOK_PATH |
api.vercel.com |
job_id, job_state |
| Cloudflare Deploy | /gitslice/automations/cloudflare-deploy@v1.0.0 |
CLOUDFLARE_API_TOKEN |
api.cloudflare.com, registry.npmjs.org |
version_id, deployment_url |
Inspect any template's full input schema, secrets, network hosts, and available tags from the CLI:
gs auto inspect /gitslice/automations/slack-notify@v1.0.0
Quick Examples
1. Slack Notify (slack-notify)
Store the path portion after https://hooks.slack.com/services/ (for example
T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX) in a folder secret named
SLACK_WEBHOOK_PATH (or map your own secret name in secrets:):
# /acme/app/.gitslice/automations.yaml
version: 1
automations:
notify-landings:
on: [push]
secrets: [SLACK_WEBHOOK_PATH]
network: [hooks.slack.com]
action:
uses: /gitslice/automations/slack-notify@v1.0.0
with:
status: success
include_files: true
2. GitHub Actions Dispatch (github-dispatch)
Trigger a GitHub Actions workflow or repository_dispatch from Gitslice with a
fine-grained PAT (actions: write or contents: write) stored in GITHUB_TOKEN:
version: 1
automations:
trigger-gh-release:
on: [tag.created]
secrets: [GITHUB_TOKEN]
network: [api.github.com]
action:
uses: /gitslice/automations/github-dispatch@v1.0.0
with:
owner: acme
repo: app-mirror
mode: workflow_dispatch
workflow: release.yml
ref: main
3. Linear Issue Sync (linear-sync)
Automatically find Linear issue keys like ENG-123 in changeset titles and
descriptions, attach the Gitslice changeset link, post a status comment, and
optionally move the issue to In Review or Done:
version: 1
automations:
linear-on-submit:
on: [changeset.submitted]
secrets: [LINEAR_API_KEY]
network: [api.linear.app]
action:
uses: /gitslice/automations/linear-sync@v1.0.0
with:
team_prefix: ENG
target_state: Done
4. Vercel Deploy (vercel-deploy)
Store the path after https://api.vercel.com/v1/integrations/deploy/ (for
example prj_xxxxxxxxxxxx/YYYYYYYYYY) in VERCEL_DEPLOY_HOOK_PATH:
version: 1
automations:
deploy-frontend:
on: [push]
paths: [web/**]
secrets: [VERCEL_DEPLOY_HOOK_PATH]
network: [api.vercel.com]
action:
uses: /gitslice/automations/vercel-deploy@v1.0.0
with:
project_url: https://app.acme.com
5. Cloudflare Workers Deploy (cloudflare-deploy)
Build and deploy a Worker with wrangler inside Gitslice's curated node
container runtime:
version: 1
automations:
deploy-worker:
on: [push, manual]
secrets: [CLOUDFLARE_API_TOKEN]
network: [api.cloudflare.com, registry.npmjs.org, api.acme.com]
action:
uses: /gitslice/automations/cloudflare-deploy@v1.0.0
with:
account_id: "0123456789abcdef0123456789abcdef"
directory: worker
build_command: npm run build
environment: production
healthcheck_url: https://api.acme.com/healthz
Composing Templates in a Multi-Step Pipeline
version: 1
automations:
release-web:
on: [manual]
manual: { roles: [admin, writer], confirm: "Deploy web to production?" }
secrets: [VERCEL_DEPLOY_HOOK_PATH, SLACK_WEBHOOK_PATH]
network: [api.vercel.com, hooks.slack.com]
action:
steps:
- id: deploy
secrets: [VERCEL_DEPLOY_HOOK_PATH]
network: [api.vercel.com]
uses: /gitslice/automations/vercel-deploy@v1.0.0
with:
project_url: https://app.acme.com
- id: notify
if: always
secrets: [SLACK_WEBHOOK_PATH]
network: [hooks.slack.com]
uses: /gitslice/automations/slack-notify@v1.0.0
with:
status: success
title: Production Web Deploy
message: "Triggered Vercel job ${{ steps.deploy.outputs.job_id }} (${{ steps.deploy.outputs.job_state }})"
link_url: https://app.acme.com
Running Tests Locally
node --test test/automations.test.mjs
