dbgrandi / danger-prose

Danger plugin to lint your blog posts with proselint
MIT License
26 stars 11 forks source link

Run Proselint over commit messages? #8

Open suchow opened 8 years ago

suchow commented 8 years ago

Nice work with this Danger plugin! I'll be using it on Proselint's GitHub repo soon (https://github.com/amperser/proselint/pull/546).

Question — is it possible to use this to run Proselint over commit messages?

orta commented 8 years ago

Sure can - git.commits.map {|commit| commit.message } gives you the strings for all the commit messages 👍

Would recommend running bundle exec danger local --pry to open a REPL inside the Dangerfile and look around once it's set up

orta commented 8 years ago

Hrm, the current proselint plugin however is mainly built for working against files, so we'd either need to allow for arbitrary text, or you'll need to write the messages to a file