microsoft / dts-gen

dts-gen creates starter TypeScript definition files for any module or library.
MIT License
2.43k stars 102 forks source link

Auto-detect author's name and GitHub URL #61

Closed leonard-thieu closed 7 years ago

leonard-thieu commented 7 years ago

This PR adds support for auto-detecting an author's name and GitHub URL when generating a header. It looks at ~/.gitconfig for the author's name and .git/config for the author's GitHub URL.

Note: Type definitions for parse-git-config weren't available at the time of the PR. They can be added when https://github.com/DefinitelyTyped/DefinitelyTyped/pull/16817 is merged.

msftclas commented 7 years ago

@leonard-thieu, Thanks for your contribution. To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects. Thanks, Microsoft Pull Request Bot

msftclas commented 7 years ago

@leonard-thieu, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot