Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Graph support #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add Graph support #15

wants to merge 3 commits into from

Conversation

bastelfreak
Copy link
Member

No description provided.

@bastelfreak bastelfreak requested a review from a team as a code owner February 6, 2020 11:46
@bastelfreak bastelfreak changed the title [WIP] Add Graph support Add Graph support Feb 6, 2020
@bastelfreak
Copy link
Member Author

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 3
           

See the complete overview on Codacy

# we should save the json in Redis and cache it
content = Github.client.contents("voxpupuli/#{name}", path: 'metadata.json', query: { ref: 'master' })
metadata = content[:content]
module_name = JSON.load(Base64.decode64(metadata))['name']
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


def update_forge_module
# we should save the json in Redis and cache it
content = Github.client.contents("voxpupuli/#{name}", path: 'metadata.json', query: { ref: 'master' })
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -15,6 +15,7 @@ class Repository < ApplicationRecord
primary_key: :github_id,
foreign_key: :gh_repository_id,
inverse_of: :repository)
has_one :module
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants