Closed jonsmithers closed 1 year ago
I have a few ideas for solutions. My personal preference is 3.
$ git mob ad
ERROR: co-author with initials "ad" not found
$ git mob --github jonsmithers
Jane Doe <jane@example.com>
Jon Smithers <2660313+jonsmithers@users.noreply.github.com>
Only add users from github if you confirm a prompt. For example:
$ git mob jonsmithers
ERROR: Co-author "jonsmithers" not found.
Would you like to add "Jon Smithers <2660313+jonsmithers@users.noreply.github.com>" from GitHub (y/n)? y
Jane Doe <jane@example.com>
Jon Smithers <2660313+jonsmithers@users.noreply.github.com>
$ git mob ad
ERROR: co-author with initials "ad" not found.
To automatically add users from GitHub, run "git config --global mob.github true"
$ git config --global mob.github true
$ git mob ad
Jane Doe <jane@example.com>
Daniel Apatin <35623+ad@users.noreply.github.com>
Hey @jonsmithers
Thanks for pointing this out and I can definitely see it being confusing for newer users.
I like your suggestions and probably best to use a flag and/or the config.
Fixed in version v2.3.5
Summary
In my experience with my pairs, adding usernames from GitHub (https://github.com/rkotze/git-mob/issues/74) is always accidental.
Just to be super clear, here's an example:
Motivation
Avoids confusion/frustration, especially for brand new users.
Describe alternatives you've considered
Additional context