0.0
No release in over 3 years
Low commit activity in last 3 years
A ruby gem using neo4apis to make importing github data to neo4j easy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.12.2
>= 0.6.0
 Project Readme

neo4apis-github is a ruby gem for making importing data from github to neo4j easy

This adapter supports objects created from the github_api gem.

require 'github_api'
github_client = Github.new(oauth_token: token)

require 'neo4apis/github'
neo4japis_github = Neo4Apis::Github.new(Neo4j::Session.open)

neo4japis_github.batch do
  github_client.issues.list.each do |issue|
    # Imports:
    #  * The issue
    #  * The creator / assignee
    #  * The repo
    #  * The owner of the repo
    import :Issue, issue
  end
end

Currently supports importing of User, Issue, Repository, Comment, and Commit entities