Second entity: Github pull request

This commit is contained in:
askeluv
2019-03-08 14:37:36 +08:00
parent 1991bd437f
commit 55fd71c5e1
13 changed files with 532 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
import { GithubPullRequest } from '../../../src/entities';
// To re-create the JSON file from the API (e.g. if the API output schema changes), run the below command:
// curl https://api.github.com/repos/0xProject/0x-monorepo/pulls?per_page=1&page=1
// docs here: https://developer.github.com/v3/pulls/#list-pull-requests
const ParsedGithubPulls: 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,
};
export { ParsedGithubPulls };