You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: retrieve owner email from npm or git config (#520)
<!-- 👋 Hi, thanks for sending a PR to template-typescript-node-package!
💖.
Please fill out all fields below and make sure each item is true and [x]
checked.
Otherwise we may not be able to review your PR. -->
## PR Checklist
- [x] Addresses an existing open issue: fixes#499
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md)
were taken
## Overview
<!-- Description of what is changed and how the code change does that.
-->
- Extracted the logic of retrieving the npm user info to a new function
and modified the tests accordingly
- `getHydrationValues` will try to retrieve the email from the npm user
info, and in case of failure, will reach out to git config.
* Note: I was not sure how to properly test the new functionality rather
than modifying the tests, please advice, or check the new functionality
to provide me with feedback.
---------
Co-authored-by: Josh Goldberg ✨ <[email protected]>
0 commit comments