saturn-bot

command module
v0.29.0 Latest Latest
Warning

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

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

README

saturn-bot 🪐🤖

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 and GitLab.
  • Implement custom logic and complex changes through plugins in Go and Python.
  • Automatically merge pull requests if all checks have passed and all approvals have been given.

Quickstart

Requirements:

  • saturn-bot 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-bot Hello World"
prTitle: "saturn-bot Hello World"
prBody: |
  saturn-bot Quickstart.

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

# Filters tell saturn-bot which repositories to modify.
filters:
  - filter: repository
    params:
      host: github.com
      owner: wndhydrnt # Replace with your owner
      name: saturn-bot-example # Replace with your repository

# Actions tell saturn-bot how to modify each repository.
actions:
  - action: fileCreate
    params:
      content: "Hello World"
      path: "hello-world.txt"

Run saturn-bot:

GitHub

SATURN_BOT_GITHUBTOKEN=<token> saturn-bot run hello-world.yaml

GitLab

SATURN_BOT_GITLABTOKEN=<token> saturn-bot 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
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/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/plugin
Package plugin is a generated GoMock package.
Package plugin 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