Insert modes
bluzi opened this issue · comments
Summary
Currently, what stops some repository owners from using @TravisBuddy is the noise and spam it does, since it comments a new comment every time the build fails.
The current mode will be append
mode, where @TravisBuddy creates a new comment every time.
update
mode will tell @TravisBuddy to create a single comment, and if a comment already exists in the pull request, it will update the comment with the new build state.
How to resolve?
Depends on #73
Query the insert mode from the configuration (#73), and modify handlers/success.handler.js
and handlers/failure.handler.js
so it'll create a comment only if the insert mode is append or if there is no comment, and update if there's already a comment and the insert mode is update
. (The default should be append
)