Add macro replacement to success/failure comment messages

Added macro replacement to success/failure comment messages. This is useful for allowed users to customize the comment messages with better information about the build.