mntnr / build-a-space

Automatically add community documentation to your repository
https://maintainer.io
MIT License
21 stars 3 forks source link

Add support for retrieving `Contribute` from README #57

Closed wooorm closed 6 years ago

wooorm commented 6 years ago

Previously, if there was no CONTRIBUTE.md file, the fixture in this repo was used. Now, in this case, and if there’s a Contribute section on the README of the repository, that section (including the heading) is used instead as a template for CONTRIBUTE.md.

Related to GH-12. Supersedes GH-22.

RichardLitt commented 6 years ago

Could you add tests?

wooorm commented 6 years ago

I’d like to, but I’m not entirely sure where or how? The lint test is pretty different from this, and the coc one isn’t filled out.

Do you have pointers?

RichardLitt commented 6 years ago

Added two little notes on where I would naturally try to break this out and add some unit tests. I don't know your code incredibly well, so if I broke it, I want to make sure that there are tests for it.

wooorm commented 6 years ago

Done! How does this look?