wndhydrnt / saturn-bot

Automatically create pull requests. Create, modify or delete files across repositories.
https://saturn-bot.readthedocs.io
GNU Affero General Public License v3.0
0 stars 0 forks source link
automation gitops golang pull-requests refactoring

saturn-bot 🪐🤖

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

Use cases

Features

Quickstart

Requirements:

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