MR-Tracker

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 5 Imported by: 0

README

MR-Tracker

Maintainability Total alerts Go Reference

Find changes between given versions by analyzing merge requests.

Currently only work for Gitlab MRs.

Usage

Before

This tool works on Gitlab APIs. Make sure your gitlab project visibility is public, OR generate a private-token (see Gitlab docs) for your project.

And the project ID is required for Gitlab APIs to work. You can find it from your project home page: where to find project ID

Install

If you have golang environment, install by command:

go install github.com/MamaShip/MR-Tracker@latest

Or you can download the executable file from release page. And put it in your PATH (or run it directly).

Run

Parameters -project is the minimum requirements to run the program.

Type MR-Tracker -h to see detail instructions.

Available options:

options input type description
-h Print help info
-v Print version
-site string Set your Gitlab URL (default: gitlab.com)
-project int Set your project ID
-token string Set your Gitlab API token for the project
-branch string This tool automatically analysis MRs on default branch.
If you wanna track changes on other branches, set it by this option
-start string Set the tag where you want to compare difference from
-end string Set the tag where you want to compare difference to
-post If this flag is set, result will be posted as gitlab issue.
This function needs Gitlab API token

example:

MR-Tracker -site gitlab.com -project 31285645 -start v1.0.0 -end v1.0.1

Inspired by

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL