Sha256: ae3b5ae4c3594c32b89d147076482ac39d72fc705869bdb5d1e2ef75e5d5d132

Contents?: true

Size: 1.58 KB

Versions: 23

Compression:

Stored size: 1.58 KB

Contents

<%- @tables.each do |table| -%>
  <%- if table[:content].any? || table[:resolved].any? -%>
<table>
  <thead>
    <tr>
      <th width="50"></th>
      <th width="100%" data-danger-table="true" data-kind="<%= table[:name] %>">
        <%- if table[:count] > 0 -%>
          <%= table[:count] %> <%= table[:name] %><%= "s" unless table[:count] == 1 %>
        <%- else -%>
          :white_check_mark: <%= random_compliment %>
        <%- end -%>
      </th>
     </tr>
  </thead>
  <tbody>
    <%- max_num_violations = 700 %>
    <%- table[:content].take(max_num_violations).each do |violation| -%>
    <tr>
      <td>:<%= table[:emoji] %>:</td>
      <td data-sticky="<%= violation.sticky %>"><%= violation.message %></td>
    </tr>
    <%- end -%>
    <%- if table[:content].length > max_num_violations -%>
      <tr>
        <td>:warning:</td>
        <td>
        Danger found <%= table[:content].length %> violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to <%= max_num_violations %>.
        </td>
      </tr>
    <%- end -%>
    <%- table[:resolved].each do |message| -%>
      <tr>
        <td>:white_check_mark:</td>
        <td data-sticky="true"><del><%= message %></del></td>
      </tr>
    <%- end -%>
  </tbody>
</table>
  <%- end -%>
<%- end -%>

<%- @markdowns.each do |current| -%>
<%= current %>
<%# the previous line has to be aligned far to the left, otherwise markdown can break easily %>
<%- end -%>
<p align="right" data-meta="generated_by_<%= @danger_id %>">
  Generated by :no_entry_sign: <a href="http://danger.systems/">danger</a>
</p>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
danger-4.0.0 lib/danger/comment_generators/github.md.erb
danger-3.6.0 lib/danger/comment_generators/github.md.erb
danger-3.5.5 lib/danger/comment_generators/github.md.erb
danger-3.5.4 lib/danger/comment_generators/github.md.erb
danger-3.5.3 lib/danger/comment_generators/github.md.erb
danger-3.5.2 lib/danger/comment_generators/github.md.erb
danger-3.5.1 lib/danger/comment_generators/github.md.erb
danger-3.5.0 lib/danger/comment_generators/github.md.erb
danger-3.4.2 lib/danger/comment_generators/github.md.erb
danger-3.4.1 lib/danger/comment_generators/github.md.erb
danger-3.4.0 lib/danger/comment_generators/github.md.erb
danger-3.3.2 lib/danger/comment_generators/github.md.erb
danger-3.3.1 lib/danger/comment_generators/github.md.erb
danger-3.3.0 lib/danger/comment_generators/github.md.erb
danger-3.2.2 lib/danger/comment_generators/github.md.erb
danger-3.2.1 lib/danger/comment_generators/github.md.erb
danger-3.2.0 lib/danger/comment_generators/github.md.erb
danger-3.1.1 lib/danger/comment_generators/github.md.erb
danger-3.1.0 lib/danger/comment_generators/github.md.erb
danger-3.0.3 lib/danger/comment_generators/github.md.erb