Integrated: git-pr-create: be explicit about CC:d mailing lists

Erik Helin ehelin at openjdk.java.net
Sat Aug 29 09:52:51 UTC 2020


On Fri, 28 Aug 2020 13:02:41 GMT, Erik Helin <ehelin at openjdk.org> wrote:

> Hi all,
> 
> please review this patch that makes `git pr create` much more explicit about the
> mailing lists that will be CC:d for the "RFR" email generated from a pull
> request. A user can now manually specify the mailing lists with `--cc` flag, for
> example:
> 
> $ git pr create --cc=hotspot-dev,build-dev
> 
> Furthermore, `git pr create` will now also prompt the user for confirmation
> about the selected mailing lists before proceeding:
> 
> $ git pr create --cc=hotspot-dev,build-dev
> You have chosen the following mailing lists to be CC:d for the "RFR" e-mail:
> - hotspot-dev at openjdk.java.net
> - build-dev at openjdk.java.net
> 
> Do you want to proceed with this mailing list selection? [Y/n]:
> 
> If a user does not specify `--cc`, then `git pr create` will display the mailing
> lists that were inferred based on the changes in the pull request:
> 
> The following mailing lists will be CC:d for the "RFR" e-mail:
> - build-dev at openjdk.java.net
> 
> Do you want to proceed with this mailing list selection? [Y/n]:
> 
> If a user specify `--cc=auto` then no prompt will be shown and inferred mailing
> lists will be used.
> 
> Additionally, the selected mailing lists will also be shown in the users
> `$EDITOR` when the user writes the pull request message. For example:
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> As with all flags to Skara's CLI commands, a default value can be configured for
> the `--cc` flag. This means that users that so wish can opt in to always use the
> inferred mailing lists by running:
> 
> $ git config --global pr.create.cc auto
> 
> Testing:
> - [x] Manual testing on Linux x64
> 
> Thanks,
> Erik

This pull request has now been integrated.

Changeset: e954044c
Author:    Erik Helin <ehelin at openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/e954044c
Stats:     554 lines in 10 files changed: 199 ins; 345 del; 10 mod

git-pr-create: be explicit about CC:d mailing lists

Reviewed-by: rwestberg

-------------

PR: https://git.openjdk.java.net/skara/pull/750


More information about the skara-dev mailing list