lib/issue_graph/issue.rb
# Add information to the graph node based on the issue itself.
Add information to the graph node based on the issue itself.
Add information to the graph node based on the issue itself .
def decorate_graph_node
    style = %w{filled}
    if self[:state] == "open"
      node[:shape] = "box"
    else
      node[:shape] = "octagon"
      style << "dotted"
    end
    if is_epic?
      style << "rounded"
      node[:color] = "crimson"
    end
    node[:fillcolor] = self[:fillcolor] || raise("Got no color for #{self}!")
    node[:style] = style.join(",")
  end
def decorate_graph_node style = %w{ filled } if self [ :state ] == "open" node [ :shape ] = "box" else node [ :shape ] = "octagon" style << "dotted" end if is_epic? style << "rounded" node [ :color ] = "crimson" end node [ :fillcolor ] = self [ :fillcolor ] || raise ( "Got no color for #{self}!" ) node [ :style ] = style . join ( "," ) end
Add information to the graph node based on the issue itself.
Add information to the graph node based on the issue itself .
# Epic vs normal determines shape and edge color # Main repo vs other repo determines color # Everyone