Skip to content

Commit

Permalink
Use uppercase relationships to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Feb 20, 2015
1 parent 1a15f3d commit 4c2c980
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/neo4apis/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Github < Base
:size, :forks_count, :mirror_url,
:created_at, :updated_at, :pushed_at]

add_relationship(:has_owner, node, owner_node)
add_relationship(:HAS_OWNER, node, owner_node)

node
end
Expand All @@ -31,8 +31,8 @@ class Github < Base
node = add_node :Issue, issue, [:id, :number, :title, :body, :html_url, :comments,
:created_at, :updated_at, :closed_at]

add_relationship(:has_user, node, user_node)
add_relationship(:has_assignee, node, assignee_node) if assignee_node
add_relationship(:HAS_USER, node, user_node)
add_relationship(:HAS_ASSIGNEE, node, assignee_node) if assignee_node

node
end
Expand All @@ -44,7 +44,7 @@ class Github < Base
:position, :line, :path, :commit_id,
:created_at, :updated_at]

add_relationship(:made_comment, user_node, node)
add_relationship(:MADE_COMMENT, user_node, node)

node
end
Expand All @@ -63,8 +63,8 @@ class Github < Base
end


add_relationship(:authored, node, author_node) if author_node
add_relationship(:committed, node, committer_node) if committer_node
add_relationship(:AUTHORED, author_node, node) if author_node
add_relationship(:COMMITTED, committer_node, node) if committer_node

node
end
Expand Down

0 comments on commit 4c2c980

Please sign in to comment.