script for displaying the status of your last Gitlab pipelines #49
vindarel
started this conversation in
Show and tell: example snippets
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File
civiewer
:Usage
Without arguments, it reads your .git/config to get the first Gitlab remote URL and the couple username/project.
"OK" is green, "FAILED" is red.
or:
I first did it in https://github.com/vindarel/pipelines-viewer. Doing it with CIEL is faster, moreover for a simple throw-away script (I don't plan on replacing other CLI tools, but this is suits a need).
NB: working interactively is essential for development speed, I recommend writing CIEL scripts with Emacs and Slime or any other good editor.
Observation
I commented out what I had to change from my original solution to using CIEL:
loop … across
first
butelt data 0
and don't usestr:substring
.Beta Was this translation helpful? Give feedback.
All reactions