saturn

command module
v0.46.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

README

Saturn 🪐🤖

Create, modify or delete files across many repositories in parallel.

Use cases

  • Onboard repositories to CI workflows.
  • Keep files in sync across repositories.
  • Automate code rewrites.

Features

  • Create or delete files.
  • Insert, replace or delete lines in files.
  • Filter which repositories to modify.
  • Automatic creation of pull requests.
  • Support for GitHub, GitLab and Forgejo.
  • Automatically merge pull requests if all checks have passed and all approvals have been given.

Quickstart

Requirements:

  • Saturn installed.
  • An access token for GitHub or GitLab.

Create the file hello-world.yaml:

# yaml-language-server: $schema=https://saturn-bot.readthedocs.io/en/latest/schemas/task.schema.json
name: "Saturn Hello World"
prTitle: "Saturn Hello World"
prBody: |
  Saturn Quickstart.

  This pull request creates the file `hello-world.txt`.

# Repository filters allow targeting specific repositories.
repositories:
  - host: codeberg.org # Replace with your host
    owner: saturn-sync # Replace with your owner
    name: saturn-example # Replace with your repository

# Define one or more commands to modify each repository.
script:
  - echo "Hello World" > hello-world.txt

Run Saturn:

GitHub

SATURN_GITHUBTOKEN=<token> saturn run hello-world.yaml

GitLab

SATURN_GITLABTOKEN=<token> saturn run hello-world.yaml

Forgejo

SATURN_FORGEJOADDRESS=https://<forgejo>/api/v1 \
SATURN_FORGEJOTOKEN=<token> \
saturn run hello-world.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
db
git
host/bitbucket/client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
host/forgejo/client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.
log
ptr
ptr provides functions to convert from/to pointers.
ptr provides functions to convert from/to pointers.
server/api/openapi
Package openapi provides primitives to interact with the openapi HTTP API.
Package openapi provides primitives to interact with the openapi HTTP API.
str
test
mock/exec
Package exec is a generated GoMock package.
Package exec is a generated GoMock package.
mock/git
Package git is a generated GoMock package.
Package git is a generated GoMock package.
mock/host
Package host is a generated GoMock package.
Package host is a generated GoMock package.
mock/processor
Package processor is a generated GoMock package.
Package processor is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL