Run Proselint over commit messages?
suchow opened this issue · comments
Jordan Suchow commented
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?
Orta Therox commented
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 Therox commented
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