danger / General

How can I customise my danger bot output?

How can I customise my danger bot output?

danger/General · May 9, 2018 at 1:49pm

How can I customise my danger bot output?

danger / General · May 9, 2018 at 1:49pm
I have a few concerns about my dangerfile results. I know i could write from 0 a script to collect the data I need and report it back to my PR, but still would like to use the power of Danger.
  1. The results preview via an HTML comment is a very smart solution, but still would like to customise what I am able to see on other services https://github.com/danger/danger/issues/701
  2. If I solely use markdown() comments, I can customise the output, but the summary is still going to be wrong. Apart from this, there is a default inline, spacing etc. I can't really template, nor I know a method to fully customise the output. Say I have many optional fields and special formats.
  3. Also " Generated by 🚫 dangerJS " comments will always appear? Don't want to seem selfish, but it's the only self-signed tool I am using. Maybe there is a super easy way to opt-out.
Add a Danger comment preview summary · Issue #701 · danger/danger
https://github.com/danger/danger/issues/701

May 9, 2018 at 8:46pm

I'd not be adverse to accepting a PR with another messaging primitive function that allows more control like you ask, like raw or something. It'd need in include the danger-id which is referenced in a comment in the issue body, and I think I'd still want it to keep the "by Danger" signature.

  • reply
  • like

May 10, 2018 at 8:01am

Thanks for replying. I'll probably consider to fork and tweak the reporter. Should this be the place to start? https://github.com/danger/danger-js/blob/master/source/runner/Executor.ts

  • reply
  • like

May 10, 2018 at 10:32pm

Yep, `handleResultsPostingToPlatform`

  • reply
  • like
Your message here...

*bold*_italic_`code````codeblock```