Skip to content

neo4jrb/neo4apis-github

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

An ruby gem to import github data to neo4j

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages