This commit is contained in:
askeluv
2019-03-08 20:07:26 +08:00
parent 9f69d2cb76
commit 88704ce417
14 changed files with 505 additions and 522 deletions

View File

@@ -1,9 +1,9 @@
import {MigrationInterface, QueryRunner, Table} from "typeorm";
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
const table = new Table({
name: 'raw.github_repo',
columns: [
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
{ name: 'name', type: 'varchar', isPrimary: true },
{ name: 'created_at', type: 'numeric', isNullable: false },
@@ -16,12 +16,11 @@ const table = new Table({
{ name: 'forks', type: 'numeric', isNullable: false },
{ name: 'open_issues', type: 'numeric', isNullable: false },
{ name: 'network', type: 'numeric', isNullable: false },
{ name: 'subscribers', type: 'numeric', isNullable: false }
{ name: 'subscribers', type: 'numeric', isNullable: false },
],
});
export class CreateGithubRepo1552016339539 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(table);
}
@@ -29,5 +28,4 @@ export class CreateGithubRepo1552016339539 implements MigrationInterface {
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropTable(table);
}
}

View File

@@ -1,9 +1,9 @@
import {MigrationInterface, QueryRunner, Table} from "typeorm";
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
const table = new Table({
name: 'raw.github_pull_request',
columns: [
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
{ name: 'repo_name', type: 'varchar', isPrimary: true },
{ name: 'pull_request_number', type: 'numeric', isPrimary: true },
@@ -15,12 +15,10 @@ const table = new Table({
{ name: 'state', type: 'varchar', isNullable: false },
{ name: 'title', type: 'varchar', isNullable: false },
{ name: 'user_login', type: 'varchar', isNullable: false },
],
});
export class CreateGithubPullRequest1552024155243 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(table);
}
@@ -28,5 +26,4 @@ export class CreateGithubPullRequest1552024155243 implements MigrationInterface
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropTable(table);
}
}

View File

@@ -1,9 +1,9 @@
import {MigrationInterface, QueryRunner, Table} from "typeorm";
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
const table = new Table({
name: 'raw.github_fork',
columns: [
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true},
{ name: 'observed_timestamp', type: 'numeric', isPrimary: true },
{ name: 'name', type: 'varchar', isPrimary: true },
{ name: 'owner_login', type: 'varchar', isPrimary: true },
@@ -17,12 +17,11 @@ const table = new Table({
{ name: 'forks', type: 'numeric', isNullable: false },
{ name: 'open_issues', type: 'numeric', isNullable: false },
{ name: 'network', type: 'numeric', isNullable: true },
{ name: 'subscribers', type: 'numeric', isNullable: true }
{ name: 'subscribers', type: 'numeric', isNullable: true },
],
});
export class CreateGithubFork1552044685566 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(table);
}
@@ -30,5 +29,4 @@ export class CreateGithubFork1552044685566 implements MigrationInterface {
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.dropTable(table);
}
}

View File

@@ -70,9 +70,9 @@ export class GithubSource {
return respJson;
}
/**
* Call Github API for forks of repo and return result - paginated.
*/
/**
* Call Github API for forks of repo and return result - paginated.
*/
public async getGithubForksAsync(page: number): Promise<GithubForkResponse[]> {
const resp = await fetchAsync(`${this._forksUrl}${page}`);
const respJson: GithubForkResponse[] = await resp.json();

View File

@@ -4,7 +4,6 @@ import { numberToBigIntTransformer } from '../utils';
@Entity({ name: 'github_fork', schema: 'raw' })
export class GithubFork {
@PrimaryColumn({ name: 'observed_timestamp', type: 'bigint', transformer: numberToBigIntTransformer })
public observedTimestamp!: number;
@@ -43,5 +42,4 @@ export class GithubFork {
@Column({ name: 'subscribers', type: 'integer', nullable: true })
public subscribers?: number;
}

View File

@@ -33,5 +33,4 @@ export class GithubPullRequest {
@Column({ name: 'user_login' })
public userLogin!: string;
}

View File

@@ -39,5 +39,4 @@ export class GithubRepo {
@Column({ name: 'subscribers', transformer: numberToBigIntTransformer })
public subscribers?: number;
}

View File

@@ -6,7 +6,7 @@ import { GithubFork } from '../../entities';
* @param response A Github response from the API.
*/
export function parseGithubForks(response: GithubForkResponse[], observedTimestamp: number): GithubFork[] {
const result: GithubFork[] = response.map( fork => {
const result: GithubFork[] = response.map(fork => {
const parsedFork = new GithubFork();
parsedFork.observedTimestamp = observedTimestamp;
parsedFork.name = fork.name;

View File

@@ -5,8 +5,11 @@ import { GithubPullRequest } from '../../entities';
* Converts a Github response from the API into an GithubRepo entity.
* @param rawRepo A Github response from the API into an GithubRepo entity.
*/
export function parseGithubPulls(response: GithubPullRequestResponse[], observedTimestamp: number): GithubPullRequest[] {
return response.map( pull => {
export function parseGithubPulls(
response: GithubPullRequestResponse[],
observedTimestamp: number,
): GithubPullRequest[] {
return response.map(pull => {
const parsedPullRequest = new GithubPullRequest();
parsedPullRequest.observedTimestamp = observedTimestamp;
parsedPullRequest.repoName = pull.base.repo.name;

View File

@@ -1,101 +1,101 @@
[
{
"id": 174390905,
"node_id": "MDEwOlJlcG9zaXRvcnkxNzQzOTA5MDU=",
"name": "0x-monorepo",
"full_name": "AlphaSquadAlgorithms/0x-monorepo",
"private": false,
"owner": {
"login": "AlphaSquadAlgorithms",
"id": 47441730,
"node_id": "MDQ6VXNlcjQ3NDQxNzMw",
"avatar_url": "https://avatars0.githubusercontent.com/u/47441730?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AlphaSquadAlgorithms",
"html_url": "https://github.com/AlphaSquadAlgorithms",
"followers_url": "https://api.github.com/users/AlphaSquadAlgorithms/followers",
"following_url": "https://api.github.com/users/AlphaSquadAlgorithms/following{/other_user}",
"gists_url": "https://api.github.com/users/AlphaSquadAlgorithms/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AlphaSquadAlgorithms/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlphaSquadAlgorithms/subscriptions",
"organizations_url": "https://api.github.com/users/AlphaSquadAlgorithms/orgs",
"repos_url": "https://api.github.com/users/AlphaSquadAlgorithms/repos",
"events_url": "https://api.github.com/users/AlphaSquadAlgorithms/events{/privacy}",
"received_events_url": "https://api.github.com/users/AlphaSquadAlgorithms/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": true,
"url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo",
"forks_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/deployments",
"created_at": "2019-03-07T17:32:08Z",
"updated_at": "2019-03-07T17:32:16Z",
"pushed_at": "2019-03-07T17:28:47Z",
"git_url": "git://github.com/AlphaSquadAlgorithms/0x-monorepo.git",
"ssh_url": "git@github.com:AlphaSquadAlgorithms/0x-monorepo.git",
"clone_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo.git",
"svn_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo",
"homepage": "",
"size": 86560,
"stargazers_count": 0,
"watchers_count": 0,
"language": "TypeScript",
"has_issues": false,
"has_projects": true,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"open_issues_count": 0,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "development"
}
]
{
"id": 174390905,
"node_id": "MDEwOlJlcG9zaXRvcnkxNzQzOTA5MDU=",
"name": "0x-monorepo",
"full_name": "AlphaSquadAlgorithms/0x-monorepo",
"private": false,
"owner": {
"login": "AlphaSquadAlgorithms",
"id": 47441730,
"node_id": "MDQ6VXNlcjQ3NDQxNzMw",
"avatar_url": "https://avatars0.githubusercontent.com/u/47441730?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AlphaSquadAlgorithms",
"html_url": "https://github.com/AlphaSquadAlgorithms",
"followers_url": "https://api.github.com/users/AlphaSquadAlgorithms/followers",
"following_url": "https://api.github.com/users/AlphaSquadAlgorithms/following{/other_user}",
"gists_url": "https://api.github.com/users/AlphaSquadAlgorithms/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AlphaSquadAlgorithms/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AlphaSquadAlgorithms/subscriptions",
"organizations_url": "https://api.github.com/users/AlphaSquadAlgorithms/orgs",
"repos_url": "https://api.github.com/users/AlphaSquadAlgorithms/repos",
"events_url": "https://api.github.com/users/AlphaSquadAlgorithms/events{/privacy}",
"received_events_url": "https://api.github.com/users/AlphaSquadAlgorithms/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": true,
"url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo",
"forks_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/AlphaSquadAlgorithms/0x-monorepo/deployments",
"created_at": "2019-03-07T17:32:08Z",
"updated_at": "2019-03-07T17:32:16Z",
"pushed_at": "2019-03-07T17:28:47Z",
"git_url": "git://github.com/AlphaSquadAlgorithms/0x-monorepo.git",
"ssh_url": "git@github.com:AlphaSquadAlgorithms/0x-monorepo.git",
"clone_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo.git",
"svn_url": "https://github.com/AlphaSquadAlgorithms/0x-monorepo",
"homepage": "",
"size": 86560,
"stargazers_count": 0,
"watchers_count": 0,
"language": "TypeScript",
"has_issues": false,
"has_projects": true,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"open_issues_count": 0,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "development"
}
]

View File

@@ -1,335 +1,327 @@
[
{
"url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684",
"id": 259358832,
"node_id": "MDExOlB1bGxSZXF1ZXN0MjU5MzU4ODMy",
"html_url": "https://github.com/0xProject/0x-monorepo/pull/1684",
"diff_url": "https://github.com/0xProject/0x-monorepo/pull/1684.diff",
"patch_url": "https://github.com/0xProject/0x-monorepo/pull/1684.patch",
"issue_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684",
"number": 1684,
"state": "open",
"locked": false,
"title": "[WIP] Pull Github data",
"user": {
"login": "askeluv",
"id": 2386262,
"node_id": "MDQ6VXNlcjIzODYyNjI=",
"avatar_url": "https://avatars2.githubusercontent.com/u/2386262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/askeluv",
"html_url": "https://github.com/askeluv",
"followers_url": "https://api.github.com/users/askeluv/followers",
"following_url": "https://api.github.com/users/askeluv/following{/other_user}",
"gists_url": "https://api.github.com/users/askeluv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/askeluv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/askeluv/subscriptions",
"organizations_url": "https://api.github.com/users/askeluv/orgs",
"repos_url": "https://api.github.com/users/askeluv/repos",
"events_url": "https://api.github.com/users/askeluv/events{/privacy}",
"received_events_url": "https://api.github.com/users/askeluv/received_events",
"type": "User",
"site_admin": false
},
"body": "## Description\r\n\r\nPulling Github data so we can start monitoring metrics related to the monorepo.\r\n\r\n## Testing instructions\r\n\r\n```\r\nyarn build\r\nyarn migrate:run\r\nyarn test\r\nyarn test:db\r\nnode lib/src/scripts/pull_github.js\r\n```\r\n\r\n## Types of changes\r\n\r\nNew feature (non-breaking change which adds functionality)\r\n\r\n## Checklist:\r\n\r\n- [x] Github repo entity\r\n- [ ] Github pull request entity\r\n- [ ] Github fork entity\r\n",
"created_at": "2019-03-08T04:36:28Z",
"updated_at": "2019-03-08T04:36:28Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "85d164aedbf17d96f11d20b2f08eeaca0defb6e2",
"assignee": null,
"assignees": [
],
"requested_reviewers": [
],
"requested_teams": [
],
"labels": [
],
"milestone": null,
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/commits",
"review_comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/comments",
"review_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684/comments",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/1991bd437f798e52d6210cf4fac173a10e30f0bd",
"head": {
"label": "0xProject:pull-github-data",
"ref": "pull-github-data",
"sha": "1991bd437f798e52d6210cf4fac173a10e30f0bd",
"user": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 92181371,
"node_id": "MDEwOlJlcG9zaXRvcnk5MjE4MTM3MQ==",
"name": "0x-monorepo",
"full_name": "0xProject/0x-monorepo",
"private": false,
"owner": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
{
"url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684",
"id": 259358832,
"node_id": "MDExOlB1bGxSZXF1ZXN0MjU5MzU4ODMy",
"html_url": "https://github.com/0xProject/0x-monorepo/pull/1684",
"diff_url": "https://github.com/0xProject/0x-monorepo/pull/1684.diff",
"patch_url": "https://github.com/0xProject/0x-monorepo/pull/1684.patch",
"issue_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684",
"number": 1684,
"state": "open",
"locked": false,
"title": "[WIP] Pull Github data",
"user": {
"login": "askeluv",
"id": 2386262,
"node_id": "MDQ6VXNlcjIzODYyNjI=",
"avatar_url": "https://avatars2.githubusercontent.com/u/2386262?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/askeluv",
"html_url": "https://github.com/askeluv",
"followers_url": "https://api.github.com/users/askeluv/followers",
"following_url": "https://api.github.com/users/askeluv/following{/other_user}",
"gists_url": "https://api.github.com/users/askeluv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/askeluv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/askeluv/subscriptions",
"organizations_url": "https://api.github.com/users/askeluv/orgs",
"repos_url": "https://api.github.com/users/askeluv/repos",
"events_url": "https://api.github.com/users/askeluv/events{/privacy}",
"received_events_url": "https://api.github.com/users/askeluv/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/0xProject/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": false,
"url": "https://api.github.com/repos/0xProject/0x-monorepo",
"forks_url": "https://api.github.com/repos/0xProject/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/0xProject/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/0xProject/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/0xProject/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/0xProject/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/0xProject/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/0xProject/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/0xProject/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/0xProject/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/0xProject/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/0xProject/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/0xProject/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/0xProject/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/0xProject/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/0xProject/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/0xProject/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/0xProject/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/0xProject/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/0xProject/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/0xProject/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/0xProject/0x-monorepo/deployments",
"created_at": "2017-05-23T14:17:33Z",
"updated_at": "2019-03-08T00:48:18Z",
"pushed_at": "2019-03-08T04:36:28Z",
"git_url": "git://github.com/0xProject/0x-monorepo.git",
"ssh_url": "git@github.com:0xProject/0x-monorepo.git",
"clone_url": "https://github.com/0xProject/0x-monorepo.git",
"svn_url": "https://github.com/0xProject/0x-monorepo",
"homepage": "",
"size": 86647,
"stargazers_count": 989,
"watchers_count": 989,
"language": "TypeScript",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 295,
"mirror_url": null,
"archived": false,
"open_issues_count": 46,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
"body": "## Description\r\n\r\nPulling Github data so we can start monitoring metrics related to the monorepo.\r\n\r\n## Testing instructions\r\n\r\n```\r\nyarn build\r\nyarn migrate:run\r\nyarn test\r\nyarn test:db\r\nnode lib/src/scripts/pull_github.js\r\n```\r\n\r\n## Types of changes\r\n\r\nNew feature (non-breaking change which adds functionality)\r\n\r\n## Checklist:\r\n\r\n- [x] Github repo entity\r\n- [ ] Github pull request entity\r\n- [ ] Github fork entity\r\n",
"created_at": "2019-03-08T04:36:28Z",
"updated_at": "2019-03-08T04:36:28Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "85d164aedbf17d96f11d20b2f08eeaca0defb6e2",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/commits",
"review_comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/comments",
"review_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684/comments",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/1991bd437f798e52d6210cf4fac173a10e30f0bd",
"head": {
"label": "0xProject:pull-github-data",
"ref": "pull-github-data",
"sha": "1991bd437f798e52d6210cf4fac173a10e30f0bd",
"user": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 92181371,
"node_id": "MDEwOlJlcG9zaXRvcnk5MjE4MTM3MQ==",
"name": "0x-monorepo",
"full_name": "0xProject/0x-monorepo",
"private": false,
"owner": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/0xProject/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": false,
"url": "https://api.github.com/repos/0xProject/0x-monorepo",
"forks_url": "https://api.github.com/repos/0xProject/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/0xProject/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/0xProject/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/0xProject/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/0xProject/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/0xProject/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/0xProject/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/0xProject/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/0xProject/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/0xProject/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/0xProject/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/0xProject/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/0xProject/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/0xProject/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/0xProject/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/0xProject/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/0xProject/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/0xProject/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/0xProject/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/0xProject/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/0xProject/0x-monorepo/deployments",
"created_at": "2017-05-23T14:17:33Z",
"updated_at": "2019-03-08T00:48:18Z",
"pushed_at": "2019-03-08T04:36:28Z",
"git_url": "git://github.com/0xProject/0x-monorepo.git",
"ssh_url": "git@github.com:0xProject/0x-monorepo.git",
"clone_url": "https://github.com/0xProject/0x-monorepo.git",
"svn_url": "https://github.com/0xProject/0x-monorepo",
"homepage": "",
"size": 86647,
"stargazers_count": 989,
"watchers_count": 989,
"language": "TypeScript",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 295,
"mirror_url": null,
"archived": false,
"open_issues_count": 46,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 295,
"open_issues": 46,
"watchers": 989,
"default_branch": "development"
}
},
"forks": 295,
"open_issues": 46,
"watchers": 989,
"default_branch": "development"
}
},
"base": {
"label": "0xProject:development",
"ref": "development",
"sha": "9e03e1c742d73c6f0b2d61b1a069120e4aa71d3e",
"user": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 92181371,
"node_id": "MDEwOlJlcG9zaXRvcnk5MjE4MTM3MQ==",
"name": "0x-monorepo",
"full_name": "0xProject/0x-monorepo",
"private": false,
"owner": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
"base": {
"label": "0xProject:development",
"ref": "development",
"sha": "9e03e1c742d73c6f0b2d61b1a069120e4aa71d3e",
"user": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"repo": {
"id": 92181371,
"node_id": "MDEwOlJlcG9zaXRvcnk5MjE4MTM3MQ==",
"name": "0x-monorepo",
"full_name": "0xProject/0x-monorepo",
"private": false,
"owner": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/0xProject/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": false,
"url": "https://api.github.com/repos/0xProject/0x-monorepo",
"forks_url": "https://api.github.com/repos/0xProject/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/0xProject/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/0xProject/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/0xProject/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/0xProject/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/0xProject/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/0xProject/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/0xProject/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/0xProject/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/0xProject/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/0xProject/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/0xProject/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/0xProject/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/0xProject/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/0xProject/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/0xProject/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/0xProject/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/0xProject/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/0xProject/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/0xProject/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/0xProject/0x-monorepo/deployments",
"created_at": "2017-05-23T14:17:33Z",
"updated_at": "2019-03-08T00:48:18Z",
"pushed_at": "2019-03-08T04:36:28Z",
"git_url": "git://github.com/0xProject/0x-monorepo.git",
"ssh_url": "git@github.com:0xProject/0x-monorepo.git",
"clone_url": "https://github.com/0xProject/0x-monorepo.git",
"svn_url": "https://github.com/0xProject/0x-monorepo",
"homepage": "",
"size": 86647,
"stargazers_count": 989,
"watchers_count": 989,
"language": "TypeScript",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 295,
"mirror_url": null,
"archived": false,
"open_issues_count": 46,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 295,
"open_issues": 46,
"watchers": 989,
"default_branch": "development"
}
},
"html_url": "https://github.com/0xProject/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
"fork": false,
"url": "https://api.github.com/repos/0xProject/0x-monorepo",
"forks_url": "https://api.github.com/repos/0xProject/0x-monorepo/forks",
"keys_url": "https://api.github.com/repos/0xProject/0x-monorepo/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/0xProject/0x-monorepo/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/0xProject/0x-monorepo/teams",
"hooks_url": "https://api.github.com/repos/0xProject/0x-monorepo/hooks",
"issue_events_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/events{/number}",
"events_url": "https://api.github.com/repos/0xProject/0x-monorepo/events",
"assignees_url": "https://api.github.com/repos/0xProject/0x-monorepo/assignees{/user}",
"branches_url": "https://api.github.com/repos/0xProject/0x-monorepo/branches{/branch}",
"tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/tags",
"blobs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/{sha}",
"languages_url": "https://api.github.com/repos/0xProject/0x-monorepo/languages",
"stargazers_url": "https://api.github.com/repos/0xProject/0x-monorepo/stargazers",
"contributors_url": "https://api.github.com/repos/0xProject/0x-monorepo/contributors",
"subscribers_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscribers",
"subscription_url": "https://api.github.com/repos/0xProject/0x-monorepo/subscription",
"commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/0xProject/0x-monorepo/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/0xProject/0x-monorepo/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/0xProject/0x-monorepo/contents/{+path}",
"compare_url": "https://api.github.com/repos/0xProject/0x-monorepo/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/0xProject/0x-monorepo/merges",
"archive_url": "https://api.github.com/repos/0xProject/0x-monorepo/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/0xProject/0x-monorepo/downloads",
"issues_url": "https://api.github.com/repos/0xProject/0x-monorepo/issues{/number}",
"pulls_url": "https://api.github.com/repos/0xProject/0x-monorepo/pulls{/number}",
"milestones_url": "https://api.github.com/repos/0xProject/0x-monorepo/milestones{/number}",
"notifications_url": "https://api.github.com/repos/0xProject/0x-monorepo/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/0xProject/0x-monorepo/labels{/name}",
"releases_url": "https://api.github.com/repos/0xProject/0x-monorepo/releases{/id}",
"deployments_url": "https://api.github.com/repos/0xProject/0x-monorepo/deployments",
"created_at": "2017-05-23T14:17:33Z",
"updated_at": "2019-03-08T00:48:18Z",
"pushed_at": "2019-03-08T04:36:28Z",
"git_url": "git://github.com/0xProject/0x-monorepo.git",
"ssh_url": "git@github.com:0xProject/0x-monorepo.git",
"clone_url": "https://github.com/0xProject/0x-monorepo.git",
"svn_url": "https://github.com/0xProject/0x-monorepo",
"homepage": "",
"size": 86647,
"stargazers_count": 989,
"watchers_count": 989,
"language": "TypeScript",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 295,
"mirror_url": null,
"archived": false,
"open_issues_count": 46,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
"_links": {
"self": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684"
},
"html": {
"href": "https://github.com/0xProject/0x-monorepo/pull/1684"
},
"issue": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684"
},
"comments": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/commits"
},
"statuses": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/1991bd437f798e52d6210cf4fac173a10e30f0bd"
}
},
"forks": 295,
"open_issues": 46,
"watchers": 989,
"default_branch": "development"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684"
},
"html": {
"href": "https://github.com/0xProject/0x-monorepo/pull/1684"
},
"issue": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684"
},
"comments": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/issues/1684/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/pulls/1684/commits"
},
"statuses": {
"href": "https://api.github.com/repos/0xProject/0x-monorepo/statuses/1991bd437f798e52d6210cf4fac173a10e30f0bd"
}
},
"author_association": "CONTRIBUTOR"
}
]
"author_association": "CONTRIBUTOR"
}
]

View File

@@ -5,15 +5,15 @@ import { GithubPullRequest } from '../../../src/entities';
// docs here: https://developer.github.com/v3/pulls/#list-pull-requests
const ParsedGithubPullRequest: GithubPullRequest = {
observedTimestamp: Date.now(),
repoName: '0x-monorepo',
pullRequestNumber: 1684,
state: 'open',
title: '[WIP] Pull Github data',
userLogin: 'askeluv',
createdAt: 1552019788000,
updatedAt: 1552019788000,
closedAt: null,
mergedAt: null,
};
observedTimestamp: Date.now(),
repoName: '0x-monorepo',
pullRequestNumber: 1684,
state: 'open',
title: '[WIP] Pull Github data',
userLogin: 'askeluv',
createdAt: 1552019788000,
updatedAt: 1552019788000,
closedAt: null,
mergedAt: null,
};
export { ParsedGithubPullRequest };

View File

@@ -5,24 +5,24 @@
"full_name": "0xProject/0x-monorepo",
"private": false,
"owner": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/0xProject/0x-monorepo",
"description": "0x protocol monorepo - includes our smart contracts and many developer tools",
@@ -86,37 +86,36 @@
"archived": false,
"open_issues_count": 46,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 294,
"open_issues": 46,
"watchers": 989,
"default_branch": "development",
"organization": {
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
"login": "0xProject",
"id": 24832717,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjI0ODMyNzE3",
"avatar_url": "https://avatars2.githubusercontent.com/u/24832717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/0xProject",
"html_url": "https://github.com/0xProject",
"followers_url": "https://api.github.com/users/0xProject/followers",
"following_url": "https://api.github.com/users/0xProject/following{/other_user}",
"gists_url": "https://api.github.com/users/0xProject/gists{/gist_id}",
"starred_url": "https://api.github.com/users/0xProject/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0xProject/subscriptions",
"organizations_url": "https://api.github.com/users/0xProject/orgs",
"repos_url": "https://api.github.com/users/0xProject/repos",
"events_url": "https://api.github.com/users/0xProject/events{/privacy}",
"received_events_url": "https://api.github.com/users/0xProject/received_events",
"type": "Organization",
"site_admin": false
},
"network_count": 294,
"subscribers_count": 89
}
}

View File

@@ -5,17 +5,17 @@ import { GithubRepo } from '../../../src/entities';
// docs here: https://developer.github.com/v3/repos/#get
const ParsedGithubRepo: GithubRepo = {
observedTimestamp: Date.now(),
name: '0x-monorepo',
createdAt: 1495549053000,
updatedAt: 1551908929000,
pushedAt: 1551916745000,
size: 86538,
stargazers: 989,
watchers: 989,
forks: 294,
openIssues: 46,
network: 294,
subscribers: 89,
};
observedTimestamp: Date.now(),
name: '0x-monorepo',
createdAt: 1495549053000,
updatedAt: 1551908929000,
pushedAt: 1551916745000,
size: 86538,
stargazers: 989,
watchers: 989,
forks: 294,
openIssues: 46,
network: 294,
subscribers: 89,
};
export { ParsedGithubRepo };