lib/issue_graph/issue/collection.rb
# Given a hash of data, create a new issue and add it to the collection,
# or find an existing issue. Return the result.
Given a hash of data, create a new issue and add it to the collection,
or find an existing issue. Return the result.
Given a hash of data create a new issue and add it to the collection or find an existing issue . Return the result .
def add_or_find(hash)
    issue = IssueGraph::Issue.new(hash)
    if i = self[issue.name]
      return i
    else
      issue[:repo_name] = repository_name_from_id(issue[:repo_id])
      issue.load_from_gh(gh_client)
      self.add(issue)
      return issue
    end
  end
def add_or_find ( hash ) issue = IssueGraph :: Issue . new ( hash ) if i = self [ issue . name ] return i else issue [ :repo_name ] = repository_name_from_id ( issue [ :repo_id ] ) issue . load_from_gh ( gh_client ) self . add ( issue ) return issue end end
Given a hash of data, create a new issue and add it to the collection,
or find an existing issue.
Given a hash of data create a new issue and add it to the collection or find an existing issue .
# load issue data from github so we have enough info for the graph string
hash
<not_specific>