dbgrandi / danger-prose

Danger plugin to lint your blog posts with proselint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run Proselint over commit messages?

suchow opened this issue · comments

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

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

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

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