Crates.io | there-i-fixed-it |
lib.rs | there-i-fixed-it |
version | 0.1.0 |
source | src |
created_at | 2021-03-20 18:52:15.91776 |
updated_at | 2021-03-20 18:52:15.91776 |
description | Automatic refactoring of repositories within an organization |
homepage | |
repository | https://github.com/jaysonsantos/there-i-fixed-it |
max_upload_size | |
id | 371448 |
size | 84,026 |
This is a tool to automate repetitive tasks on repositories of an organization.
When you supply a plan, the process is the following:
there-i-fixed-it 0.1.0
USAGE:
there-i-fixed-it [FLAGS] --plan-file <plan-file>
FLAGS:
-h, --help Prints help information
-s, --skip-repository-cache
-V, --version Prints version information
OPTIONS:
-f, --plan-file <plan-file>
Example of a plan:
branch_name = "automated/update-flag"
git_message = "chore: Update flag that should be false"
pull_request_title = "Update flag that should be false" # Optional, if missing git_message is used
pull_request_body = "This updates the flag that should be false @jaysonsantos."
repositories = ["my-repo"] # Also works with globs like python-*, *-rs, or *
deny_repositories = [
] # Optional, if present it runs after the above filter to remove denied repositories
[provider]
name = "github" # Only github is implemented but others should be easy to implement
user = "user-name"
token = "token"
organization = "my-organization"
[[files]]
glob = "terraform/**/*.tf"
processors = [
{ type = "regex", operations = [
{ from = "(delete_everything\\W+=\\W+)true", to = "${1}false" },
] }
]
# You can have multiple [[files]]
[[files]]
glob = "**.py"
processors = [
{ type = "regex", operations = [
{ from = "(def\\W+)wrong_function_name", to = "${1}right_function_name" }
] }
]
No warranties!