Skip to content
Rust CLI tool to push the current commits and create an MR in Gitlab
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE
README.md
config.toml

README.md

gitlab-push-and-mr

Push and create an MR automatically using gitlab API and GIT.

You need a Gitlab account and a project there, plus an API key.

Run

With your Gitlab API secret in a ./secret file and an example Config.toml file:

user = "mzupanmz"
mr_labels = ["Waiting for Review"]

Execute:

// set ssh config to environment
export SSH_KEY_FILE=/path/to/private/key
export SSH_PASS=my_password

// run tool
cargo run -- -d "Some Description" -t "Some Title"
You can’t perform that action at this time.