Mic92 / nixpkgs-review

Review pull-requests on https://github.com/NixOS/nixpkgs
MIT License
409 stars 66 forks source link

Add --git-config flag #432

Open ShamrockLee opened 2 days ago

ShamrockLee commented 2 days ago

This PR adds a --git-config flag to pass additional Git configurations to the Git executable via the -c name value arguments. This flag can be specified multiple times, preserving spaces inside the configuration values in each specification.

This flag allows running nixpkgs-review with trusted users (usually root) but with the original user's Git configurations (such as user.name and user.email), which helps gain builder access for multi-system reviews.