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

Using Github API to grab programming language information on starred repos #37

Open
Mordax opened this Issue Nov 30, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@Mordax
Copy link
Contributor

Mordax commented Nov 30, 2018

As discussed with @0xazure in real life - I'd like to work on a PR that adds a capability to sort by languages found in a user's starred repos.

@0xazure

This comment has been minimized.

Copy link
Owner

0xazure commented Dec 3, 2018

@Mordax this sounds like a great idea!

It looks like the GitHub API includes information about a project's languages (see the languages_url key).

You'll likely also have to modify the Star structure here:

supernova/src/lib.rs

Lines 67 to 71 in 66f5bc5

#[derive(Debug, Deserialize)]
struct Star {
starred_at: DateTime<Utc>,
repo: Repository,
}

to capture this data as we pull it from the API. I'm not totally sure how this is going to work with serde and the #[derive] attributes because serde expects a particular struct structure to correctly (de)serialize the API data.

Looking forward to seeing this functionality added to supernova!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment