Skip to content

Add CLI option for displaying author emails #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 30, 2021
Merged

Conversation

remkop22
Copy link
Contributor

@remkop22 remkop22 commented Jun 30, 2021

feature request, closes #451

In order to display emails of authors, users can enable `email` cli flag
Copy link
Collaborator

@spenserblack spenserblack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR!

I left some suggestions about code style, which I believe would be necessary to pass the format check in the CI.

@spenserblack
Copy link
Collaborator

spenserblack commented Jun 30, 2021

Also, looks like your commits aren't getting mapped to your GitHub account. Probably an email mismatch. Do you need to amend the commit author? Not a big deal, but I wouldn't want for you to not get credit for your work 🙂

Changed type of author to contain `Option<String>`. This field is
initialized when the email cli flag is set. If the email is Some() it
is formatted together with the username and displayed.
remkop22 and others added 2 commits June 30, 2021 15:37
Co-authored-by: Spenser Black <[email protected]>
Co-authored-by: Spenser Black <[email protected]>
@remkop22
Copy link
Contributor Author

Thanks for your PR!

I left some suggestions about code style, which I believe would be necessary to pass the format check in the CI.

Thanks a bunch for the suggestions! Will be more careful regarding formatting and tab-size in the future.

Also, looks like your commits aren't getting mapped to your GitHub account. Probably an email mismatch. Do you need to amend the commit author? Not a big deal, but I wouldn't want for you to not get credit for your work 🙂

Oops! I fixed my git settings, but no need to amend them for this PR.

@remkop22 remkop22 requested a review from spenserblack June 30, 2021 13:47
Copy link
Collaborator

@spenserblack spenserblack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! Looks like there's one more change to pass the formatting check.

@remkop22 remkop22 requested a review from spenserblack June 30, 2021 14:13
Copy link
Collaborator

@spenserblack spenserblack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@o2sh o2sh merged commit 0130a25 into o2sh:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CLI flag to display "username <email>" in the Author section ✉️
3 participants