Skip to content

A set of curated scripts that provide additinal Github/Gitlab workflows by combining https://github.com/jordilin/gitar commands

License

Notifications You must be signed in to change notification settings

jordilin/gitar-amps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitAR-Amps - Git All Remotes Amplifiers

GitAR-Amps

gitar amplifiers are a curated set of scripts that provide additional workflows by combining gitar https://github.com/jordilin/gitar commands.

Installation

Copy the directory ./bin/gitar over to any directory in your $PATH. Let's say ~/bin, then (Using Linux OS as an example):

cp -r ./bin/gitar ~/bin

Adjust your $PATH to include ~/bin/gitar:

export PATH=$PATH:~/bin/gitar

Warning

List operations can involve multiple REST API calls. In those cases, the scripts run gitar with throttling of 1 second or more in between calls. Also, the calls are sequential and gitar monitors the rate limit response headers to avoid hitting those. It is always a good idea to do a pre-check with --num-pages and --num-resources to have a general idea on how much data is going to be queried.

List of amplifiers

Comment LGTM on a merge request and approve it (optionally merge)

Comment "LGTM" on pull request timeline, approve it (Gitlab only) and automatically merge it.

lgtm --merge 123

Quickly open a merge request with --fetch, --rebase, --auto and -y

Good for opening quick merge requests where last commit can be used for its title and description.

auto-mr

Gather all my assigned pull requests in a give state sorted by project

mr-all-assigned-sort-by-project opened

List all docker images in a Gitlab's project

Retrieve registry repository id in the current project where images are being stored.

gr dk list --repos

List all images in the registry repository with id 123.

docker-list-images 123

List releases of a given Gitlab/Github repository sorted by version

Outputs CSV with columns: Tag,URL,Created_at

list-all-releases github.com/jordilin/gitar

Additionally, sort by date. Make use of datesorter command available at https://github.com/jordilin/datesorter

list-all-releases github.com/jordilin/gitar | datesorter --column 2 --sort asc -

List all assets from the last stable release

The last stable release is the one that is not marked as Pre-release in Github or as Upcoming Release in Gitlab.

list-last-assets github.com/jordilin/gitar

License

This project is licensed under

About

A set of curated scripts that provide additinal Github/Gitlab workflows by combining https://github.com/jordilin/gitar commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages