command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 15, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
:
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:
SATURN_BOT_GITHUBTOKEN=<token> saturn-bot run --task hello-world.yaml
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.