lindell / multi-gitter

Update multiple repositories in with one command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

introduce new env var DRY_RUN for scripts to be executed

nitram509 opened this issue · comments

Describe the bug

This is meant to be a small improvement.

use case / motivation

When I'm using multi-gitter to e.g. modify ~200 repos at once, I'm very much into testing upfront.
I often spot corner cases, when using the --dry-run looking at the diffs.
Also, the script I'm working on, in parallel is supposed to create Jira tickets, to support our development conventions/processes.
For this exercise, I would like to know, if the tool I'm building/using runs in DRY_RUN mode, so I can prevent tickets from being created.

propose solution

when running with --dry-run flag, provide an environment variable DRY_RUN=true to the script being executed.

FYI: I was eager to implement PR #337 but marked it as DRAFT for now and looking forward to your review.

Included in release v0.45.0 🎉

@lindell thank you for quickly doing the release as well 👍